/*--------------------------------------------------------------
# MY RUSSIAN MUNICH — тема "Urban" (вариант 4) поверх Bootstrap 5
#
# Как это устроено:
#   1. Bootstrap 5 подключён в base.html ПЕРЕД этим файлом и отвечает за
#      базу: reboot, сетку (row/col), утилиты (d-flex, mb-3), компоненты
#      (dropdown, offcanvas, alert, form-control, btn, modal...).
#   2. Этот файл задаёт фирменный слой: цвета, шрифт, шапку, герой,
#      карточки услуг и экскурсий, подвал — то, чего в Bootstrap нет.
#
# ПАМЯТКА (подробнее — в DESIGN.md в корне проекта):
#   • Поменять цвет/скругление/шрифт всего сайта — блок :root ниже.
#   • Добавить новую секцию на страницу — можно спокойно верстать
#     обычными классами Bootstrap (container/row/col/card), они работают.
--------------------------------------------------------------*/

:root {
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ink: #252326;        /* основной тёмный (текст заголовков, тёмные блоки) */
  --ink-2: #464348;      /* текст абзацев */
  --bg: #fafafa;         /* фон страницы */
  --surface: #ffffff;    /* фон карточек */
  --muted: #8b8890;      /* приглушённый текст */
  --border: #e6e4e7;

  --accent: #b06aa6;       /* акцент (ссылки, иконки) */
  --accent-soft: #efb3e7;  /* светлый акцент (кнопки, акценты на тёмном) */
  --accent-bg: #f6ecf4;    /* подложка под иконки */

  --radius: 18px;
  --radius-lg: 22px;
  --header-h: 78px;

  /* Bootstrap тоже должен знать наши цвета — тогда его штатные компоненты
     (кнопки, ссылки, focus-кольца) выглядят как остальной сайт */
  --bs-primary: #b06aa6;
  --bs-primary-rgb: 176, 106, 166;
  --bs-body-font-family: var(--font);
  --bs-body-color: #464348;
  --bs-body-bg: #fafafa;
  --bs-border-color: #e6e4e7;
  --bs-link-color: #b06aa6;
  --bs-link-hover-color: #925589;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* clip, а не hidden: убирает горизонтальную прокрутку от офф-канвас-меню,
     но не ломает position: sticky у сайдбара */
  overflow-x: clip;
}

/* Точечный сброс: у Bootstrap reboot заголовки и абзацы имеют свои отступы,
   а наши блоки задают их сами. padding НЕ обнуляем — иначе развалятся
   кнопки, алерты и поля Bootstrap. */
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

img { max-width: 100%; }

/* Своя ширина контейнера вместо бутстраповской (макет — 1180px).
   row/col внутри работают как обычно. */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.section { padding: 96px 0; }
.section-light { background: var(--surface); border-top: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}
.section-head .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head .head-note { color: var(--muted); font-size: 16px; max-width: 360px; }
.section-head .head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap .2s;
}
.section-head .head-link:hover { gap: 12px; }

.empty-note { color: var(--muted); }

/*--------------------------------------------------------------
# КНОПКИ
# Имена начинаются с btn-brand-*, чтобы не путаться с бутстраповскими
# .btn-primary / .btn-light — те продолжают работать как обычно.
--------------------------------------------------------------*/
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 34px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(239, 179, 231, .3);
  transition: transform .2s, box-shadow .2s, gap .2s;
}
.btn-brand:hover {
  color: var(--ink);
  transform: translateY(-2px);
  gap: 14px;
  box-shadow: 0 16px 40px rgba(239, 179, 231, .45);
}

.btn-brand-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  transition: border-color .2s, background .2s;
}
.btn-brand-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background .2s, color .2s, gap .2s;
}
.btn-brand-outline:hover { background: var(--ink); color: #fff; gap: 12px; }

.btn-brand-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s, gap .2s;
}
.btn-brand-ink:hover { color: #fff; transform: translateY(-2px); gap: 12px; box-shadow: 0 12px 28px rgba(37, 35, 38, .22); }

/* белая кнопка на тёмном блоке */
.btn-brand-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .2s, gap .2s;
}
.btn-brand-on-dark:hover { color: var(--ink); transform: translateY(-2px); gap: 14px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}
.link-more:hover { gap: 10px; color: var(--accent); }

/*--------------------------------------------------------------
# ШАПКА
# Разметка — штатный navbar Bootstrap (navbar-expand-lg + offcanvas),
# здесь только фирменная раскраска. Меню и подменю открывает Bootstrap.
--------------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header .header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.site-header .navbar-brand { padding: 0; margin: 0; flex-shrink: 0; }
.site-header .navbar-brand img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}

.site-header .navbar-nav { gap: 4px; align-items: center; }
/* на десктопе меню прижато к правому краю (offcanvas у Bootstrap растягивается
   на всю ширину, поэтому вправо двигаем сам список, а не панель) */
@media (min-width: 992px) {
  .site-header .navbar-nav { margin-left: auto; }
}
.site-header .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  padding: 8px 15px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header .dropdown-toggle::after { margin-left: 6px; vertical-align: 1px; }

/* выпадающее меню услуг */
.site-header .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(37, 35, 38, .16);
  padding: 8px;
  margin-top: 10px;
  min-width: 250px;
}
.site-header .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus { color: var(--ink); background: var(--accent-bg); }
.site-header .dropdown-item i { color: var(--accent); font-size: 16px; }

/* переключатель языка */
.lang-sw { display: flex; align-items: center; }
.lang-sw form { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; background: rgba(255, 255, 255, .18); }

/* кнопка «Написать» в шапке */
.btn-cta {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-cta:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }

/* бургер */
.site-header .navbar-toggler {
  border: none;
  padding: 4px 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: none;
  transition: color .3s;
}
.site-header .navbar-toggler:focus { box-shadow: none; }

/* Состояние «на светлом»: после скролла (класс вешает main.js) либо на
   страницах без фото-героя (класс solid ставится в шаблоне) */
.site-header.scrolled,
.site-header.solid {
  background: rgba(250, 250, 250, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.site-header.scrolled .navbar-brand img,
.site-header.solid .navbar-brand img { filter: none; }
.site-header.scrolled .nav-link,
.site-header.solid .nav-link { color: var(--ink-2); }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active,
.site-header.solid .nav-link:hover,
.site-header.solid .nav-link.active { color: var(--ink); background: rgba(37, 35, 38, .06); }
.site-header.scrolled .lang-btn,
.site-header.solid .lang-btn { color: var(--muted); }
.site-header.scrolled .lang-btn.active,
.site-header.solid .lang-btn.active { color: var(--accent); background: var(--accent-bg); }
.site-header.scrolled .btn-cta,
.site-header.solid .btn-cta { background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(37, 35, 38, .12); }
.site-header.scrolled .navbar-toggler,
.site-header.solid .navbar-toggler { color: var(--ink); }

/* Мобильное меню — штатный offcanvas Bootstrap, ниже только раскраска */
@media (max-width: 991.98px) {
  .site-header .header-inner { gap: 12px; padding: 0 20px; }

  .site-header .offcanvas { border: none; }
  .site-header .offcanvas-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
  .site-header .offcanvas-body { padding: 8px 24px 32px; }
  .site-header .offcanvas .navbar-nav { width: 100%; align-items: stretch; gap: 0; }
  .site-header .offcanvas .nav-item { width: 100%; }

  .site-header .offcanvas .nav-link,
  .site-header.scrolled .offcanvas .nav-link,
  .site-header.solid .offcanvas .nav-link {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: none;
  }
  .site-header .offcanvas .nav-link.active { color: var(--accent); background: none; }
  .site-header .offcanvas .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 12px 16px;
    margin: 0;
  }
  .site-header .offcanvas .dropdown-item { font-size: 16px; padding: 10px 4px; }

  /* поверх фото язык нужен на подложке, иначе теряется на светлых участках снимка */
  .site-header:not(.scrolled):not(.solid) .lang-sw {
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 2px 4px;
  }
  .lang-sw { margin-left: auto; }

  .btn-cta { display: none; }
}

/*--------------------------------------------------------------
# ГЕРОЙ (главная)
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink) center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 21, .85) 0%, rgba(20, 18, 21, .55) 45%, rgba(20, 18, 21, .15) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  padding-bottom: 40px;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}
.hero .hero-lead {
  font-size: 20px;
  color: rgba(255, 255, 255, .85);
  max-width: 520px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, .7);
  font-size: 26px;
  animation: bob 1.8s ease-in-out infinite;
}
.hero-scroll:hover { color: #fff; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/*--------------------------------------------------------------
# ШАПКА ВНУТРЕННИХ СТРАНИЦ
--------------------------------------------------------------*/
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink) center/cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 21, .55) 0%, rgba(20, 18, 21, .3) 40%, rgba(20, 18, 21, .85) 100%);
}
/* если у услуги/статьи нет своего фото — градиентная плашка вместо снимка */
.page-hero.flat {
  min-height: 0;
  background: linear-gradient(135deg, #252326 0%, #3d3742 60%, #5a4356 100%);
}
.page-hero.flat::before { display: none; }
.page-hero .container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 52px);
  padding-bottom: 52px;
}
.page-hero h1 {
  font-size: clamp(34px, 5.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 18px;
}
.page-hero .hero-lead {
  font-size: 19px;
  color: rgba(255, 255, 255, .85);
  max-width: 620px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 18px;
}
.crumbs a { color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }

/*--------------------------------------------------------------
# УСЛУГИ — сетка-бенто (главная)
--------------------------------------------------------------*/
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc-grid.uniform { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(37, 35, 38, .1); border-color: transparent; }
.svc-grid .svc-card.wide { grid-column: span 4; }
.svc-grid .svc-card.narrow { grid-column: span 2; }
.svc-grid .svc-card.half { grid-column: span 3; }
.svc-grid.uniform .svc-card { grid-column: auto; }

.svc-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.svc-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.svc-card h3 a { color: inherit; }
.svc-card h3 a:hover { color: var(--accent); }
.svc-card p { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 15px; font-weight: 700; color: var(--ink); }

.svc-card.dark { background: var(--ink); border-color: var(--ink); }
.svc-card.dark h3,
.svc-card.dark h3 a,
.svc-card.dark .price { color: #fff; }
.svc-card.dark h3 a:hover { color: var(--accent-soft); }
.svc-card.dark p { color: rgba(255, 255, 255, .62); }
.svc-card.dark .svc-ico { background: rgba(239, 179, 231, .16); color: var(--accent-soft); }
.svc-card.dark .link-more { color: var(--accent-soft); }

/*--------------------------------------------------------------
# УСЛУГИ — список-строки (страницы услуг)
--------------------------------------------------------------*/
.svc-list { display: flex; flex-direction: column; gap: 20px; }
.svc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 28px;
  align-items: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-item:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(37, 35, 38, .1); border-color: transparent; }
.svc-item .ico {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.svc-item .thumb { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.svc-item h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.svc-item h3 a { color: inherit; }
.svc-item h3 a:hover { color: var(--accent); }
.svc-item p { font-size: 15px; color: var(--ink-2); max-width: 620px; }
.svc-item .meta { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.svc-item .meta span {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}
.svc-right .price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* ссылки-таблетки на разделы */
.filter-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 30px;
  transition: background .2s, border-color .2s, color .2s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill i { color: var(--accent); }

.svc-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.svc-section + .svc-section { margin-top: 64px; }

/*--------------------------------------------------------------
# ТЁМНАЯ ПОЛОСА + ЭКСКУРСИИ
--------------------------------------------------------------*/
.band { background: var(--ink); }
.band .section-head h2 { color: #fff; }
.band .section-head .tag { color: var(--accent-soft); }
.band .section-head .head-note { color: rgba(255, 255, 255, .55); }
.band .section-head .head-link { color: var(--accent-soft); }

/* колонки подстраиваются под число карточек: 4 — во всю ширину, 2–3 — без дыр */
.exc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: start;
  gap: 20px;
}
.exc-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  background: #3d3742 center/cover no-repeat;
  transition: transform .25s, box-shadow .25s;
}
.exc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 21, 0) 35%, rgba(20, 18, 21, .88) 100%);
  z-index: 1;
  transition: background .25s;
}
.exc-card:hover::before { background: linear-gradient(180deg, rgba(20, 18, 21, .1) 20%, rgba(20, 18, 21, .9) 100%); }
.exc-card > * { position: relative; z-index: 2; }
.exc-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.exc-card h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.exc-card .exc-price { font-size: 13px; color: rgba(255, 255, 255, .8); }
.exc-tag {
  align-self: flex-start;
  margin-bottom: auto;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/*--------------------------------------------------------------
# НОВОСТИ
--------------------------------------------------------------*/
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(37, 35, 38, .1); }
.news-img { height: 200px; background: #3d3742 center/cover no-repeat; display: block; }
.news-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-body h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.news-body p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; flex: 1; }

/*--------------------------------------------------------------
# КАК Я РАБОТАЮ
--------------------------------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step .num {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.step h4 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/*--------------------------------------------------------------
# CTA-ПЛАШКА
--------------------------------------------------------------*/
.cta-wrap { padding: 40px 0 110px; }
.cta {
  background: linear-gradient(135deg, #252326 0%, #3d3742 60%, #5a4356 100%);
  border-radius: 28px;
  padding: 66px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 179, 231, .28), transparent 70%);
}
.cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.cta p {
  color: rgba(255, 255, 255, .6);
  margin-top: 12px;
  font-size: 17px;
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# ДЕТАЛЬНАЯ СТРАНИЦА (услуга / статья / «Обо мне»)
--------------------------------------------------------------*/
.detail { padding: 72px 0 96px; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.detail-layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }

.detail-price {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
/* текст, приходящий из админки (summernote) */
.detail-body { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.detail-body p { margin-bottom: 18px; }
.detail-body h2 { font-size: 28px; margin: 36px 0 14px; }
.detail-body h3 { font-size: 22px; margin: 30px 0 12px; }
.detail-body ul, .detail-body ol { margin: 0 0 18px; padding-left: 22px; }
.detail-body li { margin-bottom: 8px; }
.detail-body img { border-radius: var(--radius); margin: 20px 0; }
.detail-body a { color: var(--accent); text-decoration: underline; }
.detail-body blockquote {
  border-left: 3px solid var(--accent-soft);
  padding: 6px 0 6px 22px;
  margin: 24px 0;
  color: var(--ink);
  font-size: 18px;
}

.detail-cta {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-cta p { font-size: 16px; color: var(--ink); font-weight: 600; }
.detail-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}
.side-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.side-post:last-child { border-bottom: none; }
.side-post img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.side-post .s-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.side-post:hover .s-title { color: var(--accent); }
.side-post .s-date { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Галерея (Swiper + лайтбокс) */
.article-gallery { margin-top: 48px; }
.article-gallery h4 { font-size: 20px; margin-bottom: 20px; }
.gallery-swiper { padding-bottom: 42px; }
.gallery-swiper .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next { color: var(--accent); }
.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after { font-size: 24px; font-weight: 700; }
.gallery-swiper .swiper-pagination-bullet-active { background: var(--accent); }

/*--------------------------------------------------------------
# ОБО МНЕ
--------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-grid.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.about-grid + .about-grid { margin-top: 56px; }
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }
.about-body { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
.about-body p { margin-bottom: 16px; }
.about-body img { max-width: 100%; height: auto; }
.about-body table { display: block; max-width: 100%; overflow-x: auto; }
.about-contact { max-width: 760px; margin-left: auto; margin-right: auto; }

/*--------------------------------------------------------------
# КОНТАКТЫ
# Форма — штатные .form-control и .alert Bootstrap, ниже раскраска.
--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.info-card i {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.info-card .info-value { font-size: 15px; color: var(--muted); }
/* Карточка без заголовка: текст — основной, по центру иконки */
.info-card .info-value:only-child { color: var(--ink); font-weight: 500; margin: 0; padding-top: 12px; line-height: 1.5; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form .form-control {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.contact-form .form-control::placeholder { color: var(--muted); }
.contact-form .form-control:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 106, 166, .12);
}
.contact-form textarea.form-control { min-height: 160px; resize: vertical; }

.alert { border-radius: 14px; padding: 16px 20px; font-size: 15px; }
.alert-success { background: var(--accent-bg); border-color: var(--accent-soft); color: var(--ink); }

/*--------------------------------------------------------------
# ПОДВАЛ
--------------------------------------------------------------*/
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 42px;
}
.footer-about .flogo { display: inline-flex; margin-bottom: 16px; }
.footer-about .flogo img { height: 64px; width: auto; }
.footer-about p { font-size: 14px; color: var(--muted); max-width: 280px; }
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a,
.footer-col .f-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 11px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }
/* В подвале многострочный адрес: иконка остаётся у первой строки */
.footer-col a:has(> div), .footer-col .f-note { align-items: flex-start; }
.footer-col a > i, .footer-col .f-note > i { line-height: 1.5; }
/* Текст контакта из редактора приходит абзацами — без лишних отступов между ними */
.footer-col a > div p, .footer-col .f-note > div p, .info-value p { margin: 0; }
/* Строки адреса — плотно, как в почтовом адресе */
.footer-col a > div p, .footer-col .f-note > div p, .info-value p { line-height: 1.35; }

/* Всплывающие окна «Политика конфиденциальности» и Impressum */
.legal-modal { border: 0; border-radius: var(--radius); }
.legal-modal .modal-header { padding: 22px 28px; border-color: var(--border); }
.legal-modal .modal-title { font-size: 22px; font-weight: 700; }
.legal-modal .modal-body { padding: 24px 28px; font-size: 15px; }
.legal-modal .modal-body h2 { font-size: 20px; margin: 26px 0 10px; }
.legal-modal .modal-body h3 { font-size: 17px; margin: 20px 0 8px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 17px;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--ink); color: #fff; }

/*--------------------------------------------------------------
# КНОПКА «НАВЕРХ»
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  font-size: 24px;
  box-shadow: 0 8px 26px rgba(37, 35, 38, .3);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 99;
}
.scroll-top.active { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/*--------------------------------------------------------------
# ЛАЙТБОКС ГАЛЕРЕИ
--------------------------------------------------------------*/
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 21, .95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
#lightbox-overlay.active { display: flex; }
#lightbox-img {
  max-width: 82vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
#lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
  z-index: 2;
}
#lightbox-close:hover { opacity: 1; }
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .14);
  border: none;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  width: 58px;
  height: 78px;
  cursor: pointer;
  border-radius: 14px;
  opacity: .85;
  transition: opacity .2s, background .2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }
#lightbox-prev:hover,
#lightbox-next:hover { opacity: 1; background: rgba(255, 255, 255, .26); }
#lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  z-index: 2;
}

/*--------------------------------------------------------------
# АДАПТИВ
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .hero { min-height: 88vh; }
  .hero::before { background: linear-gradient(90deg, rgba(20, 18, 21, .88) 0%, rgba(20, 18, 21, .6) 100%); }
  .page-hero { min-height: 46vh; }

  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head .head-note { max-width: none; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid .svc-card.wide,
  .svc-grid .svc-card.narrow,
  .svc-grid .svc-card.half { grid-column: span 1; }

  .svc-item { grid-template-columns: 56px 1fr; gap: 20px; padding: 26px; }
  .svc-item .ico,
  .svc-item .thumb { width: 56px; height: 56px; font-size: 24px; }
  .svc-right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .exc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .detail-layout,
  .detail-layout.single { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sidebar { position: static; }
  .about-grid,
  .about-grid.single { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-grid-first .about-photo { grid-row: 1; }
  .about-grid + .about-grid { margin-top: 40px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .cta { padding: 44px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero .hero-lead { font-size: 18px; }
  .hero-actions .btn-brand,
  .hero-actions .btn-brand-ghost { width: 100%; justify-content: center; }

  .svc-grid,
  .exc-grid,
  .news-grid,
  .steps,
  .footer-top { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .cta { padding: 36px 26px; }
  .cta-wrap { padding: 20px 0 72px; }
  .detail { padding: 48px 0 72px; }
}
