/* v4 · правки по замечаниям Ленара 04.12.2026 (05_Замечания_по_дизайну.md).
   Подключается после styles.css на всех страницах. */

/* ---------- 1. История отеля: два кадра одной пропорции, подписи и кнопки на одной линии ---------- */
.history-strip { align-items: stretch; }
.history-strip figure { height: 100%; }
.history-strip figure > picture {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink);
}
.history-strip figure > picture img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.history-strip figcaption { min-height: 3.2em; }
.history-strip .history-cta-row { margin: 10px 0 0; }
.history-more { display: none; } /* старая отдельная кнопка «Вся история» под блоком */

/* ---------- 2. Три плавающие кнопки справа: Telegram, WhatsApp, чат Марии ---------- */
.tiflis-chat__launcher { display: none !important; }   /* бывшая плашка «Мария · На связи» */
.float-bar {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 12px;
}
.float-bar__btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  color: #fff; box-shadow: 0 8px 22px rgba(31, 35, 32, .22);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.float-bar__btn:hover, .float-bar__btn:focus-visible {
  transform: scale(1.08); box-shadow: 0 12px 28px rgba(31, 35, 32, .3); text-decoration: none;
}
.float-bar__btn svg { width: 28px; height: 28px; display: block; }
.float-bar__btn--tg { background: #229ED9; }
.float-bar__btn--wa { background: #25D366; }
.float-bar__btn--chat { background: var(--accent); overflow: visible; }
.float-bar__btn--chat img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.float-bar__dot {
  position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: #3fbf6b; border: 2px solid #fff;
}
.float-bar__tip {
  position: absolute; right: 68px; top: 50%; transform: translate(6px, -50%);
  background: var(--ink); color: #fdf7ea; font-size: .82rem; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.float-bar__btn:hover .float-bar__tip, .float-bar__btn:focus-visible .float-bar__tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 720px) {
  .float-bar { top: auto; bottom: 16px; right: 12px; transform: none; gap: 10px; }
  .float-bar__btn, .float-bar__btn--chat img { width: 48px; height: 48px; }
  .float-bar__btn svg { width: 24px; height: 24px; }
  .float-bar__tip { display: none; }
}

/* ---------- 4. Выпадающие списки в верхнем меню ---------- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); opacity: .6;
}
.nav-dd__menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 70;
}
.nav-dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* мостик для мыши */
.nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu, .nav-dd.is-open .nav-dd__menu {
  opacity: 1; visibility: visible; transform: none;
}
.main-nav .nav-dd__menu a {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: .93rem; white-space: nowrap;
}
.main-nav .nav-dd__menu a:hover { background: var(--accent-soft); text-decoration: none; }
.nav-dd__menu small { display: block; color: var(--ink-mute); font-size: .78rem; }
.nav-dd__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.main-nav .nav-dd__all a { color: var(--accent); font-weight: 600; }
@media (max-width: 1100px) {
  .site-header.menu-open .main-nav { max-height: calc(100vh - 90px); overflow-y: auto; }
  .nav-dd { display: block; width: 100%; }
  .nav-dd__menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: transparent; padding: 4px 0 4px 14px; min-width: 0; display: none;
  }
  .nav-dd.is-open .nav-dd__menu { display: grid; }
  .main-nav .nav-dd__menu a { font-size: 1rem; padding: 6px 0; }
}

/* ---------- 5. Блок «Познакомьтесь с Марией» ---------- */
.maria-portrait { background: var(--ink); box-shadow: var(--shadow); }
.maria-portrait .aisi-badge--maria {
  margin: 0; max-width: none; width: 100%; border-radius: 0;
  flex-direction: row; justify-content: center; gap: 16px; padding: 16px 20px;
}
.maria-portrait .aisi-badge--maria img { width: 120px; }
.maria-portrait .aisi-badge__text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.maria-portrait .aisi-badge__caption, .maria-portrait .aisi-badge__url { text-align: left; }
.maria-portrait .aisi-badge:hover { transform: none; background: #2a2f2b; }

.maria-skills article {
  border: 0; background: var(--paper);
  box-shadow: 0 6px 20px rgba(31, 35, 32, .07);
  border-left: 3px solid var(--accent);
}
/* по очереди: выезжают снизу и встают на места */
.maria-skills.anim article { opacity: 0; transform: translateY(28px) scale(.97); }
.maria-skills.anim.go article {
  animation: skillIn .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.maria-skills.anim.go article:nth-child(1) { animation-delay: .05s; }
.maria-skills.anim.go article:nth-child(2) { animation-delay: .25s; }
.maria-skills.anim.go article:nth-child(3) { animation-delay: .45s; }
.maria-skills.anim.go article:nth-child(4) { animation-delay: .65s; }
@keyframes skillIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .maria-skills.anim article { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- 3. Страница «Услуги»: крупные блоки с видео ---------- */
.svc-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.svc-toc a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: .9rem; background: var(--paper);
}
.svc-toc a:hover { background: var(--accent-soft); text-decoration: none; }
.svc-block {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0; scroll-margin-top: 110px;
}
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow);
}
.svc-block__media video, .svc-block__media img, .svc-block__media picture {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.svc-block__badge {
  position: absolute; left: 14px; bottom: 14px; background: rgba(31,35,32,.72); color: #fdf7ea;
  font-size: .78rem; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em;
}
.svc-block__eyebrow { color: var(--brick); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.svc-block h2 { margin: 0 0 14px; }
.svc-block p { color: var(--ink-soft); }
.svc-facts { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; }
.svc-facts li { padding-left: 22px; position: relative; color: var(--ink); }
.svc-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--brick); }
.svc-price { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0 18px; }
.svc-price th, .svc-price td { text-align: left; padding: 7px 10px; }
.svc-price tr:nth-child(even) td { background: var(--accent-soft); }
.svc-price tr td:first-child { border-radius: 8px 0 0 8px; } .svc-price tr td:last-child { border-radius: 0 8px 8px 0; }
.svc-price th { color: var(--ink-mute); font-weight: 500; }
.svc-price td + td, .svc-price th + th { text-align: right; white-space: nowrap; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .svc-block { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .svc-block:nth-child(even) .svc-block__media { order: 0; }
}

/* ---------- 3. Номера: завтрак в описании ---------- */
.room-breakfast {
  display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft);
  border-radius: var(--radius); padding: 14px 16px; margin: 18px 0;
}
.room-breakfast b { display: block; }
.room-breakfast span { color: var(--ink-soft); font-size: .92rem; }
.room-breakfast__icon { font-size: 1.4rem; line-height: 1; }

/* ---------- 3. Об отеле: удобства, перенесённые из «Услуг» ---------- */
.hotel-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.hotel-facts article { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 20px rgba(31,35,32,.06); }
.hotel-facts h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.hotel-facts p { color: var(--ink-soft); margin: 0; font-size: .92rem; }

/* ---------- Экскурсии: отдельная страница ---------- */
.ex-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; color: #fdf7ea; }
.ex-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,21,.15) 30%, rgba(20,24,21,.78)); }
.ex-hero__inner { position: relative; padding-bottom: 56px; }
.ex-hero h1 { color: #fdf7ea; margin: 8px 0 12px; }
.ex-hero .page-lead { color: rgba(253,247,234,.9); max-width: 60ch; }
.ex-hero .crumbs, .ex-hero .crumbs a { color: rgba(253,247,234,.8); }
.ex-hero .btn.ghost { background: rgba(10,15,12,.35); color: #fdf7ea; border-color: rgba(253,247,234,.7); }
.ex-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 28px; }
.ex-stats div { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 20px rgba(31,35,32,.06); }
.ex-stats b { display: block; font-family: var(--font-display, inherit); font-size: 2rem; color: var(--accent); line-height: 1.1; }
.ex-stats span { color: var(--ink-soft); font-size: .9rem; }
.ex-price__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.ex-price__card { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.ex-price__sum { font-size: 2.2rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.ex-price__note { color: var(--ink-mute); font-size: .82rem; margin-top: 14px; }
.section details { background: var(--paper); border-radius: 12px; padding: 14px 18px; margin: 0 0 10px; }
.section details summary { cursor: pointer; font-weight: 600; }
@media (max-width: 860px) { .ex-stats { grid-template-columns: repeat(2, 1fr); } .ex-price__grid { grid-template-columns: 1fr; } .ex-price__card { position: static; } }
.svc-anchor{position:absolute;top:-100px}
.svc-block{position:relative}
.svc-price th + th + th, .svc-price td + td + td{text-align:right}

/* ---------- Главная: карточки услуг с видео ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { display: block; background: var(--paper); border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: 0 6px 20px rgba(31,35,32,.07); transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.svc-card__media { display: block; aspect-ratio: 16 / 10; background: var(--ink); }
.svc-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card__text { display: block; padding: 16px 18px 20px; }
.svc-card__text b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.svc-card__text span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }
#services .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 16px; margin-bottom: 32px; }

/* ---------- без линий разметки (замечание Ленара 04.12) ---------- */
.page-hero { border-bottom: 0; }
.page-hero + .section { padding-top: clamp(24px, 4vw, 44px); }
.svc-toc { margin-bottom: 8px; }
.svc-blocks .svc-block:first-child { padding-top: 32px; }
