/* Правки поверх собранной вёрстки (исходников Tailwind нет) */

/* Разделы в шапке на широком экране */
.aqd-nav { display: none; }

@media (min-width: 1280px) {
  .aqd-nav { display: block; height: 100%; margin-left: 32px; }
  .aqd-nav > ul { display: flex; height: 100%; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
  .aqd-nav > ul > li { position: relative; height: 100%; display: flex; align-items: center; }
  .aqd-nav a { color: #fff; font-size: 15px; white-space: nowrap; transition: color .3s; }
  .aqd-nav a:hover, .aqd-nav a:focus-visible { color: var(--sand-1, #d8c18a); }
  .aqd-nav__has-sub > a::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .3s;
  }
  .aqd-nav__has-sub:hover > a::after, .aqd-nav__has-sub:focus-within > a::after { transform: rotate(225deg); margin-bottom: -1px; }
  .aqd-nav__sub {
    position: absolute; top: 100%; left: -20px; min-width: 360px; margin: 0; padding: 10px 0; list-style: none;
    background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); border-radius: 4px;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .aqd-nav__has-sub:hover .aqd-nav__sub, .aqd-nav__has-sub:focus-within .aqd-nav__sub { opacity: 1; visibility: visible; transform: none; }
  .aqd-nav__sub a { display: block; padding: 10px 20px; color: #1f1f1d; font-size: 14px; white-space: normal; }
  .aqd-nav__sub a:hover, .aqd-nav__sub a:focus-visible { color: #232474; background: #f4f1ea; }
  .aqd-nav__sub li:first-child a { font-weight: 600; }
}

/* Пока шапка не вмещает всё: «Заказать звонок» остаётся в меню и плавающей кнопке */
@media (min-width: 1280px) and (max-width: 1599px) {
  .page__header .aqd-callback-pill { display: none; }
}

/* Поиск */
.aqd-search { display: flex; gap: 8px; width: 100%; max-width: 640px; }
.aqd-search input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; font-size: 16px;
  border: 1px solid rgba(31, 31, 29, .25); border-radius: 50px; background: #fff; color: #1f1f1d;
}
.aqd-search input[type="search"]:focus { outline: none; border-color: #232474; }
.aqd-search button {
  flex: none; height: 48px; padding: 0 26px; border-radius: 50px; border: 0;
  background: #a8862a; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.aqd-search button:hover { background: #232474; }
.aqd-search--menu { margin-bottom: 24px; }
.aqd-search--menu input[type="search"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.aqd-search--menu input[type="search"]::placeholder { color: rgba(255, 255, 255, .6); }
.aqd-search--menu input[type="search"]:focus { border-color: #fff; }

.aqd-search-results { margin: 40px 0 0; max-width: 900px; }
.aqd-search-results__note { color: #5b5b58; margin-bottom: 24px; }
.aqd-search-results__note a { color: #232474; text-decoration: underline; }
.aqd-search-results ul { list-style: none; margin: 0; padding: 0; }
.aqd-search-results li { padding: 20px 0; border-top: 1px dashed rgba(0, 0, 0, .25); }
.aqd-search-results li > a { display: inline-block; font-size: 20px; color: #232474; text-decoration: underline; text-underline-offset: 4px; }
.aqd-search-results li > a:hover { color: #a8862a; }
.aqd-search-results li p { margin-top: 8px; color: #5b5b58; font-size: 15px; line-height: 1.6; }
.aqd-search-results__kind { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8a8a86; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Быстрые ссылки в подвале */
.aqd-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 24px; }
.aqd-footer-nav a { color: #fff; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); transition: text-decoration-color .3s; }
.aqd-footer-nav a:hover { text-decoration-color: #fff; }

/* Номер: цена, площадь и вид сразу под заголовком */
.aqd-room-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.aqd-room-facts li {
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50px;
  color: #fff; font-size: 15px; line-height: 1.2; white-space: nowrap;
}
.aqd-room-facts li:first-child { background: #fff; color: #232474; font-weight: 700; border-color: #fff; }
.aqd-room-photo-m { display: none; }

@media (max-width: 767px) {
  /* первый экран номера: заголовок, фото, цена/площадь, бронь; описание ниже */
  .aqd-room-head { margin-bottom: 32px; }
  .aqd-room-head > h1 { order: 0; margin-bottom: 8px; font-size: 26px; line-height: 1.15; }
  .aqd-room-photo-m { order: 1; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin: 4px 0 8px; }
  .aqd-room-facts { order: 2; }
  .aqd-room-actions { order: 3; padding-top: 4px; }
  .aqd-room-descr { order: 4; margin-top: 16px; }
  .aqd-room-actions .scrollto { display: none; }
  .aqd-room-photo { display: none; }
  .aqd-room-head ~ * { margin: 0; }
  .breadcrumbs ol { padding-top: 24px; }

  /* текст не мельче 12 px */
  .breadcrumbs li, .breadcrumbs li > *, nav ul > li { font-size: 12px !important; }
  nav ul > li > a { display: inline-flex; align-items: center; min-height: 32px; }
  .page__form label p, .page__form label p a { font-size: 12px !important; line-height: 1.5; }
  .callback-text { font-size: 12px !important; line-height: 1.15 !important; }
  .cookie__box p, .cookie__box a, .cookie__box button { font-size: 12px !important; }
  span.uppercase.whitespace-nowrap { font-size: 12px; }

  /* нажимаемое не меньше 44 px */
  .page__header .header__reserve { min-height: 44px; }
  .page__header a[href^="tel:"]:not(.header__phone) { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .carousel__nav { width: 44px !important; height: 44px !important; }
  a.button, button.button, .page__form [type="submit"] { min-height: 48px; }
  .aqd-room-actions a { min-height: 48px; }
  .page__footer a.button, .page__footer [x-data] { min-height: 44px; }
  .page__footer a[href^="tel:"], .page__footer a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .aqd-footer-nav { gap: 0 20px; }
  .aqd-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  main a[href^="tel:"]:not(.button), .page__footer a[href^="tel:"]:not(.button) { padding: 12px 0; }
  .cookie__box button { min-height: 44px; }
  .page__footer a[class*="max-w-[320px]"] { min-height: 44px; }
  a[class*="tracking-[2px]"][class*="pb-1.5"] { padding-top: 12px; padding-bottom: 12px; }
  a[href*="#apartmets-list"] { min-height: 44px; }
  a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  a[href*="yandex.ru/maps"] { font-size: 12px !important; max-height: none !important; }
}

/* Плавающая «Обратная связь» на телефоне: компактный круг в углу, не закрывает текст */
@media (max-width: 767px) {
  .page-callback { width: 56px !important; height: 56px !important; right: 12px !important; bottom: 16px !important; }
  .page-callback .callback-text { display: none; }
  .page-callback .callback-intro-i { gap: 0; }
  .page-callback .callback-menu-panel { top: -216px; }
  .page__footer { padding-bottom: 88px; }
}

/* Окно о файлах cookie */
.aqd-cookie {
  position: fixed; z-index: 300; left: 16px; bottom: 16px; max-width: 520px; padding: 18px 20px;
  background: #fff; color: #1f1f1d; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
}
.aqd-cookie.is-open { opacity: 1; transform: none; }
.aqd-cookie__text { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.aqd-cookie__text a { color: #232474; text-decoration: underline; }
.aqd-cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aqd-cookie__btn {
  min-height: 44px; padding: 0 20px; border-radius: 50px; border: 1px solid #232474; background: #fff;
  color: #232474; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.aqd-cookie__btn:hover { background: #f4f1ea; }
.aqd-cookie__btn--main { background: #232474; color: #fff; }
.aqd-cookie__btn--main:hover { background: #a8862a; border-color: #a8862a; }
[data-aqd-cookie-settings] { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
@media (max-width: 767px) {
  .aqd-cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 16px; z-index: 400; }
  .aqd-cookie__btn { flex: 1 1 auto; }
}

/* Таблицы в документах: на телефоне листаются вбок внутри себя, страница не разъезжается */
article.prose table { font-size: 15px; line-height: 1.5; }
article.prose th, article.prose td { vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
@media (max-width: 767px) {
  article.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  article.prose th, article.prose td { min-width: 180px; }
}

/* b2/b4: текст согласий в формах читается на любом экране */
label:has(input[name^="consent"]) p,
label:has(input[name^="consent"]) p a { font-size: 12px !important; line-height: 1.5; }

/* b1: соцсети отеля; пометка о Meta рядом с Instagram */
.aqd-social { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.aqd-social a { min-height: 44px; align-items: center; }
.aqd-social__note { margin: 8px 0 0; max-width: 420px; font-size: 12px; line-height: 1.4; opacity: .7; }
.panel__contacts .aqd-social-wrap { margin-bottom: 16px; }
