* { margin: 0; padding: 0; outline:0; }

body {
    font-size: 0.875rem; /* Соответствует 14px */
    line-height: 1.25; /* Относительный интервал для лучшей читаемости */
    font-family: Arial, sans-serif;
    color: #685d5d;
    background: #fff url(../bg/body-bg.gif) repeat-x 0 0;
}

a { color: #0252aa; text-decoration: none; cursor:pointer; }
a:hover { color: #000; }

a img { border: 0; }

input, textarea, select { font-family: Arial, Helvetica, sans-serif; font-size:12px; border: 0; }
textarea { overflow:hidden; }

.cl { display: block; height: 0; font-size: 0; line-height: 0; text-indent: -4000px; clear: both; }
.notext { font-size: 0; line-height: 0; text-indent: -4000px; }

.left, .alignleft { float: left; display: inline; }
.right, .alignright { float: right; display: inline; }

/* Shell */

.shell { width: 976px; margin: 0 auto; background: url(../bg/header-bg.gif) no-repeat 538px 0; }

/* End Shell */

/* Header */

#header { position: relative; height: 85px; }

h1#logo a { font-size: 22px; color:#374f5f; line-height: 22px; text-transform: uppercase; letter-spacing: 0.4px; text-decoration: none; width: 304px; float: left; padding: 26px 0 0 2px; }
h1#logo a span { color: #685d5d; font-size: 12px; letter-spacing: 0px; display: block; position: relative; top: -3px; margin-left: 62px; }

#navigation {
  float: right;
  margin-top: 25px;
}
#navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px; /* вместо padding-right у li */
}
#navigation ul li {
  display: contents; /* чтобы стили вешать на ссылку, а не на li */
}
#navigation ul li a,
#navigation ul li a span {
  display: inline-flex;
  align-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #3d708b;
  text-decoration: none; /* важно для ссылок */
  padding-left: 15px;
  min-height: 36px; /* лучше min-height, чем жёсткий height */
}
/* Если span нужен для декора/иконки — можно оставить, но без float */
#navigation ul li a span {
  padding: 0 15px 0 0;
}
/* Эффект при наведении */
#navigation ul li a:hover {
  color: #0a577a;
  background-color: #ffffff;
  border-radius: 18px; /* Скругление при наведении */
}
/* Стили для активной ссылки */
#navigation ul li a.active {
  color: #0a577a;
  background-color: #ffffff; /* Белый фон */
  border-radius: 18px; /* Округлые края */
}

/* End Header */

/* Slider */

#slider { 
  position: relative; 
  max-width: 976px; /* max-width для базовой адаптивности */
  width: 100%;
  height: 296px;   
  /* Имитация картинки: белый фон с переходом в легкую серую тень внизу */
  background: linear-gradient(to bottom, #ffffff 85%, #e6e6e6 100%);   
  /* Тонкая рамка и скругление углов, как на картинке */
  border: 1px solid #dcdcdc;
  border-radius: 10px;   
  /* Дополнительный визуальный объем (эффект легкой тени вокруг блока) */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);   
  /* Гарантирует, что контент внутри слайдера не вылезет за скругленные края */
  overflow: hidden; 
}

#next,
#prev { position: absolute; top: 115px; display: block; width:  64px; height: 64px; z-index: 10; }
#next { right: 20px; background: url(../scripts/jquery/graphics/next.png) no-repeat 0 0; }
#prev { left: 20px; background: url(../scripts/jquery/graphics/prev.png) no-repeat 0 0; }

#slider-content { position: relative; width: 976px; height: 296px; overflow: hidden; }
#slider-content ul { position: relative; list-style: none outside none; overflow: hidden; }
#slider-content ul li,
.jcarousel-clip { position: relative; width: 976px; height: 296px; }

#slider-content ul li .left-side,
#slider-content ul li .right-side { float: left; display: inline; }

#slider-content ul li .left-side { width: 361px; padding: 54px 0 0 77px;  z-index: 2; }

#slider-content ul li .right-side { float: left; display: inline; position: relative; width: 420px; line-height: 18px; padding: 74px 0 0 0; left: -9px;  z-index: 5; }
#slider-content ul li .right-side h2 { font-size: 30px; color: #374f5f; text-transform: uppercase; line-height: 30px; padding-bottom: 14px; }
#slider-content ul li .right-side a { color: #685d5d;  text-decoration: underline; }
#slider-content ul li .right-side a:hover { color: #ff0000;  text-decoration: none; }

/* End Slider */

#head-thumbs { 
  position: relative; 
  max-width: 976px; /* max-width для базовой адаптивности */
  width: 100%;
  height: 296px;   
  /* Имитация картинки: белый фон с переходом в легкую серую тень внизу */
  background: linear-gradient(to bottom, #ffffff 85%, #e6e6e6 100%);   
  /* Тонкая рамка и скругление углов, как на картинке */
  border: 1px solid #dcdcdc;
  border-radius: 10px;   
  /* Дополнительный визуальный объем (эффект легкой тени вокруг блока) */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);   
  /* Гарантирует, что контент внутри слайдера не вылезет за скругленные края */
  overflow: hidden; 
}

#head-thumbs img {
  position: absolute;
  width: 100%;          /* или фиксированная ширина, если нужно */
  height: 100%;        /* обязательно задать высоту */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Сдвигает картинку на половину её размера */
  max-width: 100%;      /* чтобы не вылезала на узких экранах */
  max-height: 100%;     /* сохраняет пропорции и не выходит за высоту */
  object-fit: contain;  /* опционально: аккуратно вписать картинку */
}


/* Main */

#main { padding: 0 0 3px 20px; }

.cols { padding: 45px 0 70px 0; }

.col { float: left; display: inline; width: 295px; margin-right: 25px; }
.col-last { margin-right: 0; }
.col1 { float: left; display: inline; width: 660px; margin-right: 25px; }
.col1-last { margin-right: 0; float: left; display: inline; width: 250px; }

.post {}
.post h3 { font-size: 20px; color: #374f5f; border-bottom: 1px solid #c3cacf; padding-bottom: 10px; margin-bottom: 10px; }
.post p { line-height: 18px; }
.post .underline { text-decoration: underline; }
.post img { margin: 6px 0; }
.post a { color: #00aeef; text-decoration: none; }
.post a:hover { color: #685d5d; }
.post a.learn-more { display: block; color: #2184ac; font-weight: bold; padding-top: 8px; text-decoration: underline; }
.post a.learn-more:hover { color: #00aeef; }

.sidebar {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar h3 {
  font-size: 20px;
  color: #374f5f;
  border-bottom: 1px solid #c3cacf;
  padding-bottom: 10px;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

/* Строка выравнивания иконки и контента */
.sidebar-row {
  display: flex;
  align-items: flex-start; 
  gap: 12px;
  overflow: hidden;
}

.sidebar svg {
  display: block;
  flex-shrink: 0;
  margin-top: 0; 
}

/* Контейнер для текста справа от иконки */
.sidebar-text {
  display: flex;
  flex-direction: column;
}

.sidebar .phone-number {
  color: #000;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
  margin-top: 3px;
}

.sidebar .person-name {
  color: #888;
  font-size: 16px;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.2;
  display: block;
  letter-spacing: 0.05em;
}




/* Оформление ссылки-номеров на главной */
.rooms-container {
  display: flex;
  gap: 25px;
  align-items: stretch;
}

.roomsblock {
  position: relative;
  height: 150px;
  width: 50%;
  border-radius: 8px;
  border: 1px solid #eee;
  background-color: #f4f4f4;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.roomsblock-inner {
  display: flex;
  /* align-items: center; ← убрано, чтобы не центрировать по вертикали */
  height: 100%;
  width: 100%;
}

.room-image-wrapper {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  margin: 0;
  padding: 0;
  transform-origin: center center;
  transition: transform 0.4s ease;
}

.room-content {
  margin-left: 25px;        /* между картинкой и текстом */
  padding-right: 15px;     /* между текстом и правым краем блока */
  display: flex;
  align-items: flex-start;
  flex: 1;                 /* занимает всё свободное пространство */
}

.room-title {
  margin: 0;
  font-size: 20px;
  color: #333;
  line-height: 1.25;
  padding-top: 12px;       /* отступ от верхнего края */
  width: 100%;             /* чтобы учитывать padding-right */
  box-sizing: border-box;  /* важно для корректного учёта отступов */
}

.room-arrow {
  position: absolute;
  bottom: 12px;
  right: 15px;
  width: 24px;
  height: 24px;
  fill: #333;
  z-index: 2;
  pointer-events: none;
}

.roomsblock:hover {
  background-color: #eee;
}

.roomsblock:hover .room-image {
  transform: scale(1.1);
}




/* Поле блока хозяин */
.owner-block {
  min-height: 180px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 0px 24px 0 rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box; /* Гарантирует правильный расчет высоты и внутренних отступов */
}

.owner-info {
  display: flex;
  align-items: center; /* Центрирует аватар и текст по вертикали */
  gap: 35px;           /* Отступ между аватаром и текстовой колонкой */
}

.avatar-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;      /* Запрещает аватару сжиматься */
  border: 1px solid #eeeeee;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.owner-content {
  display: flex;
  flex-direction: column; /* Выстраивает роль, имя и ссылку друг под другом */
}

.owner-content h4 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: normal;
  color: #333;
}

.owner-role {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 700;
  color: #374f5f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.owner-message-link {
  display: inline-flex;    /* Превращаем в гибкий контейнер */
  align-items: center;     /* Центрируем текст письма и иконку по вертикали */
  gap: 60px;               /* Фиксированный аккуратный отступ между текстом и иконкой */
  background-color: #fff9ef;
  padding: 2px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #333 !important;
  text-decoration: none;
  max-width: max-content;  /* Ссылка будет шириной строго по контенту */
  line-height: 1.4;
}

.owner-message-link:hover {
  background-color: #fff6e7;
}

.email-icon {
  flex-shrink: 0;   /* Запрещает иконке деформироваться */
  display: block;   /* убирает лишние отступы, которые иногда даёт SVG */
}



/* Плашка скидки */
.discount-card {
  /* Изменено: inline-flex вместо flex, чтобы блоки встали в ряд */
  display: inline-flex; 
  align-items: center;
  padding: 16px;
  background-color: #f9f9f9;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
  min-width: 240px;
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: top; /* Выравнивание по верхнему краю */
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Отступ между плашками */
.discount-card + .discount-card {
  margin-left: 16px;
}

.discount-icon {
  width: 40px;
  height: 40px;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.discount-icon svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.discount-text {
  display: flex;
  flex-direction: column;
}

.discount-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.discount-condition {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
  line-height: 1.2;
}


/* Блок-подложка с маркированным списком */
.list-block {
  background-color: #f7f7f7; /* серая подложка */
  border-radius: 8px;         /* округлые края */
  padding: 20px;              /* внутренние отступы */
  overflow: hidden;            /* чтобы скругления не ломались */
  clear: both;                /* важно при float-верстке */
}

.list-subtitle {
  margin: 0 0 25px 0;
  font-size: 16px;
  color: #374f5f;
}

/* Двухколоночный список */
.two-col-list {
  list-style-type: disc;       /* стандартные маркеры */
  margin: 0;
  padding: 0 0 15px 20px;       /* отступ слева под маркеры */
  columns: 2;                  /* две колонки */
  -webkit-columns: 2;
  column-gap: 30px;            /* расстояние между колонками */
}

.two-col-list li {
  break-inside: avoid;         /* чтобы пункты не разрывались между колонками */
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Разделитель — полоска не доходящая до краёв подложки */
.divider-short {
  height: 1px;
  background-color: #c3cacf;  /* тот же цвет, что и border-bottom у h3 */
  margin: 15px 20px;           /* отступ по бокам — так полоска не доходит до краёв */
}

/* Одноколоночный список после разделителя */
.one-col-list {
  list-style-type: disc;
  margin: 0;
  padding: 0 0 0 20px;
}

.one-col-list li {
  line-height: 1.5;
  margin-bottom: 8px;
}
.one-col-list p {
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Сетка для пар «левая узкая / правая широкая» */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px; /* расстояние между строками */
}

.info-row {
  display: flex;
  align-items: flex-start; /* выравнивание по верхнему краю */
}

/* Левая колонка — узкая */
.col-left {
  min-width: 240px;       /* фиксированная ширина левой части */
  display: flex;
  align-items: center;    /* иконка и текст по центру вертикали */
  gap: 8px;               /* отступ между иконкой и текстом */
  flex-shrink: 0;         /* чтобы не сжималась */
}

/* Правая колонка — занимает всё оставшееся место */
.col-right {
  flex: 1;                /* растягивается на остаток ширины */
  line-height: 1.5;
  color: #333;
}

/* Стили для иконки (заглушка) */
.icon-placeholder {
  font-size: 18px;        /* размер эмодзи/иконки */
  display: inline-block;
}

/* Стиль для комментария после двоеточия */
.comment-placeholder {
  color: #999;
}

/* Жирный текст-метка */
.label-text {
  font-weight: 700;
  color: #333;
  font-size: 14px;
}

/* Блок-кнопка прижатая вправо в отзывах */
.reviews-block {
  display: block;
  min-width: 260px;
  max-width: 50%;
  border-radius: 8px;
  border: 1px solid #dddddd;
  padding: 0px 10px 10px 2px; /* верх, право, низ, лево */
  text-decoration: none;
  color: #333;
  transition: border-color 0.3s ease;
  float: right;
  margin-left: 15px;
  margin-bottom: 15px;
}

.reviews-block:hover {
  border-color: #aaaaaa;
}

.reviews-icon {
  display: flex;
}

.reviews-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.reviews-title-wrapper {
  display: flex;
  align-items: center; /* Выравнивает текст заголовка и стрелочку по одной линии */
  margin-bottom: 2px;
}

.reviews-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-top: 8px;
  margin-left: 10px;
  line-height: 1.2;
}

.reviews-arrow {
  width: 6px;
  height: 14px;
  padding: 0px 0px 0px 15px; /* верх, право, низ, лево */
  display: inline-block;
}

.reviews-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 2px;
  margin-left: 10px;
  line-height: 1.2;
}




/* Поле блока контактов */
.contacts-block {
  background-color: #fff;
  padding: 0 0 5px 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.contacts-info {
  display: flex;
  align-items: flex-start;       /* вертикальное выравнивание по центру */
  gap: 30px;                 /* отступ между картинкой и текстом */
}

.contacts-image {
  width: 200px;
  height: 150px;
  object-fit: cover;         /* чтобы картинка заполняла блок без искажений */
  border: 1px solid #eee;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.contacts-content {
  display: flex;
  flex-direction: column;
}

.contacts-content h4 {
  margin: 0 0 2px 0;
  font-size: 40px;
  font-weight: normal;
  color: #000;
}

.contacts-title {
  margin: 5px 0 2px 0;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
}

.contacts-address {
  color: #000;
}

.contacts-email {
  color: #000;
}

.contacts-messengers {
  color: #888;
  font-style: italic;
}

p.contacts-messengers a { 
  display: inline-flex;    /* Превращаем в гибкий контейнер */
  align-items: center;     /* Центрируем текст письма и иконку по вертикали */
  gap: 7px;               /* Фиксированный аккуратный отступ между текстом и иконкой */
  background-color: #fff9ef;
  margin-right: 5px;
  padding: 2px 10px;
  border-radius: 15px;
  font-size: 14px;
  color: #727373;
  text-decoration: none;
  max-width: max-content;  /* Ссылка будет шириной строго по контенту */
  line-height: 1.4;
  transition: color 0.2s ease; /* Плавная смена цвета при наведении */
}
p.contacts-messengers a:hover { 
  background-color: #fff6e7;
  color: #333; 
}



/* Панорамы и карта */
.maps-container {
  display: flex;
  gap: 20px; /* расстояние между блоками */
  align-items: center;
}
.maps-container img { margin: 0 0 0 0; }

.mapsblock {
  position: relative;
  height: 120px;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden; /* обрезает всё, что выходит за блок */
  display: block;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box; /* рамка и отступы входят в высоту 120px */
}

/* Левый блок фиксированной ширины */
.map-left {
  width: 234px;
}

/* Правый блок на всю доступную ширину */
.map-right {
  flex: 1;
}

.map-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: none; /* картинка не сжимается */
  object-position: 50% 50%; /* центрирование по вертикали и горизонтали */
  display: block; /* убирает «строчный» отступ снизу у img */
  margin: 0;                /* гарантия отсутствия отступов */
  padding: 0;
  filter: blur(2px);
}

/* Кнопка поверх блока, по центру */
.map-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 1px solid #00aeef;
  border-radius: 22px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.map-btn:hover {
  background-color: #f7f7f7;
  color: #000;
}

.map-btn-text {
  white-space: nowrap;
}




/* Часто задаваемые вопросы */

/* Оформление вопроса Как добраться? */
.transport-info {
line-height: 1.5;
margin: 0 0 12px 0;
}

.transport-list {
list-style: none;
padding: 0;
margin: 12px 0 20px 0;
}

.transport-list li {
position: relative;
padding-left: 24px; /* чуть больше, чтобы тире не прилипало */
margin-bottom: 8px;
line-height: 1.4;
}

/* Используем тире как символ, но фиксируем выравнивание по базовой линии */
.transport-list li::before {
content: "—";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%); /* центрируем тире по вертикали относительно строки */
color: #727373;
font-weight: 400; /* чтобы тире выглядело стабильно при разных шрифтах */
}

.accordion-block {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  user-select: none;
}

/* Рамка меняется у всего блока при наведении */
.accordion-block:hover {
  border-color: #bbb;
}

.accordion-question {
  flex-grow: 1;
  font-weight: 700;
  margin: 0;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #333;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-block.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  /* Внутренние отступы вокруг текста ответа */
  padding: 0 20px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

.accordion-block.open .accordion-content {
  max-height: 500px; /* подбери под объём контента */
  opacity: 1;
}



#content {}
#content .col { width: 455px; }
#content .col h3 { padding-bottom: 16px; }
#content .col-last p { padding-bottom: 13px; }
#content .col-last .learn-more { padding: 0; }

/* End Main */

/* Footer */

#footer { 
  min-height: 105px; 
  background: #edf2fa; 
  color: #727373; 
  font-size: 0.75rem; /* Соответствует 12px при базовом шрифте 16px */
}
#footer .shell { 
  max-width: 941px; /* Теперь это максимальная ширина, подвал не будет ломать мобильный экран */
  background: none;
  padding: 14px 20px 0 20px; 
  margin: 0 auto; /* Центрирование контейнера по горизонтали */
  display: flex; /* Включаем flexbox для автоматического выравнивания лево/право */
  justify-content: space-between; /* Расталкивает p.left и p.right по краям */
  align-items: center; /* Центрирует элементы по вертикали */
  flex-wrap: wrap; /* Чтобы на смартфонах элементы переносились друг под друга */
  gap: 15px; /* Отступ между блоками, если они перенесутся на мобильном */
}
/* Ссылки и элементы слева */
#footer p.left a { 
  color: #727373; 
  text-decoration: none; /* Убираем стандартное подчеркивание */
  transition: color 0.2s ease; /* Плавная смена цвета при наведении */
}
#footer p.left a:hover { 
  color: #000000; 
}
#footer p.left span { 
  padding: 0 5px; /* отступ-разделитель */
}
#footer p.left img { 
  vertical-align: middle; /* Современный способ выравнивания иконки по центру текста */
  margin-right: 8px; 
}


/* End Footer */



table {
    width: 100%; /* Ширина таблицы */
    border-collapse: collapse; /* Убираем двойные линии между ячейками */
   }
   td, th {
    padding: 5px; /* Поля вокруг содержимого таблицы */
   }
   tbody tr:hover {
    background: #f4f4f4; /* Цвет фона при наведении */
   }

/*липнущий блок в сайдбаре*/
.sticky {
    position: sticky;
    top: 20px;
}

/*скрытый под спойлером текст в описании и отзывах*/
.text_hide_wrap {
    max-width: 700px;
}

.item_text {
    width: 100%;
    padding: 0px;
}

.item_text p {
    margin-bottom: 20px;
}

.io_item {
    width: 100%;
    padding-bottom: 20px;
}

.io_button_wrap {
    text-align: center;
    margin-top: 10px;
}

.io_button {
    display: inline-block;
    border: 1px solid #00aeef;
    width: auto;
    padding: 0 20px;
    line-height: 32px;
    vertical-align: top;
    text-transform: uppercase;
    color: #00aeef !important;
    font-size: 10pt;
    border-radius: 22px;
    cursor: pointer;
}

a.io_button {
    text-decoration: underline;
}

a.io_button:hover {
    text-decoration: none;
}

.io_item .btn_close {
    display: none;
}

.io_item .btn_open {
    display: inline-block;
}

.io_item.open .btn_close {
    display: inline-block;
}

.io_item.open .btn_open {
    display: none;
}

.io_trans {
    width: inherit;
    position: absolute;
    height: 80px;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    transition: 1s;
}

.io_item.open .io_trans {
    height: 0;
    transition: 1s;
}

.io_item_wrap {
    position: relative;
    overflow: hidden;
    max-height: 100px;
    width: inherit;
    transition: max-height 0.5;
}
.io_item.open .io_item_wrap {
    max-height: 1499px !important;
    transition: max-height 1s;
}

/*кнопка в шапке*/
a.buttonmy {
  display: inline-block;
  width: 15em;
  font-size: 85%;
  color: #555555 !important;
  text-shadow: #2e7ebd 0 1px 2px;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.2;
  white-space: pre-line;
  padding: .7em 0;
  border: 1px solid;
  border-color: #60a3d8 #2970a9 #2970a9 #60a3d8;
  border-radius: 6px;
  outline: none;
  background: #60a3d8 linear-gradient(#89bbe2, #60a3d8 50%, #378bce);
  box-shadow: inset rgba(255,255,255,.5) 1px 1px;
  margin: 35px 0 0 112px;
}
a.buttonmy:first-line{
  font-size: 170%;
  font-weight: 700;
  color: #fefefe;
}
a.buttonmy:hover {
  color: #dddddd !important;
  background-image: linear-gradient(#9dc7e7, #74afdd 50%, #378bce);
}
a.buttonmy:active {
  color: #dddddd !important;
  border-color: #2970a9;
  background-image: linear-gradient(#5796c8, #6aa2ce);
  box-shadow: none;
}



/*номера*/
.card-section {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	max-width: 700px;
	margin: 0 auto;
}

.card-container {
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	transition: 0.3s;
	width: 30%;
	border-radius: 5px;
  margin:10px auto;
	-webkit-animation:scaledown 0.3s linear;
	-moz-animation:scaledown 0.3s linear;
	animation:scaledown 0.2s linear;
	transform-origin:50% 50%;
	animation-fill-mode: forwards;
  background-color: white;
  position: relative; /* нужно для корректной работы z-index */
  z-index: 1;
}

.card-container:hover {
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
	z-index:100;
	-webkit-animation:scale 0.3s linear;
	-moz-animation:scale 0.3s linear;
	animation:scale 0.1s linear;
	transform-origin:50% 50%;
	animation-fill-mode: forwards;
}
    
.card-image img {
  border-radius: 5px 5px 0 0;
  width: 100%;       /* картинка всегда занимает всю ширину карточки */
  height: 200px;
  object-fit: cover; /* работает корректно и не сжимает фото */
  display: block;    /* убирает лишний зазор под картинкой */
  margin-top: 0px;
}

.card-image a {
  text-decoration: none;              /* убираем подчёркивание */
  color: #685d5d;                    /* базовый цвет как у текста */
  transition: color 0.3s ease;       /* плавная смена цвета */
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin: 8px 0 0 0;
}

.card-image a:hover {
  color: #333333;                    /* цвет при наведении */
}

.card-content {
	padding: 0px 16px;
	font-size: 0.92em; 
	text-shadow:0 0 1px transparent;
	line-height:22px;
	margin-bottom: 10px;
}

.card-content p {
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  font-family: Arial, Helvetica, sans-serif;
  color: #685d5d;
  margin: 2px 0 0 0;
}
.card-content a {
  text-decoration: none;              /* убираем подчёркивание */
  color: #685d5d;                    /* базовый цвет как у текста */
  transition: color 0.3s ease;       /* плавная смена цвета */
}

.card-content a:hover {
  color: #333333;                    /* цвет при наведении */
}

@keyframes scale{
	0%{
		transform:scale(1.0);
  }
	100%{
		transform:scale(1.02);
	}
}

@keyframes scaledown{
	0%{
		transform:scale(1.02);
	}
	100%{
		transform:scale(1.0);
	}
}

@media screen and (max-width: 868px) {
  .card-container {
    width: 40%;
  }
}
@media screen and (max-width: 690px) {
  .card-container {
    width: 60%;
  }
}
@media screen and (max-width: 500px) {
  .card-container {
    width: 80%;
  }
}