/* ============================================================
   КОНДИТЕРСКАЯ ЕКАТЕРИНЫ РАЕВСКОЙ
   Cassiopeia user.css  —  Joomla 6
   Загружать: /media/templates/site/cassiopeia/css/user.css

   ПАЛИТРА (менять только :root):
   #ecc6bd  — шапка, футер, пастельные фоны
   #ffffff  — фон страниц и карточек
   #a43732  — заголовки, ссылки, акцент
   #ee5133  — кнопки
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Great+Vibes&family=Jost:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ============================================================
   ТОКЕНЫ
   ============================================================ */
:root {
  --c-main:        #ecc6bd;
  --c-main-dark:   #d9a898;
  --c-main-light:  #f7e8e3;
  --c-accent:      #a43732;
  --c-accent-dark: #7e2b27;
  --c-btn:         #ee5133;
  --c-btn-dark:    #c43e24;
  --c-white:       #ffffff;
  --c-text:        #2c1a14;
  --c-nav:         #685336;   /* цвет ссылок в навигации на #ecc6bd */
  --c-muted:       #8a6a65;
  --c-border:      #e5c4bb;

  --cassiopeia-color-primary: var(--c-accent);
  --link-color:               var(--c-accent);
  --link-color-hover:         var(--c-accent-dark);
}

/* ============================================================
   БАЗОВОЕ
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  background: var(--c-main) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 12px rgba(44, 26, 20, 0.13);
  padding: 0 !important;
}

/* Шапка: логотип слева, меню справа — одна строка */
.container-header,
header.header.container-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 32px !important;
  min-height: 72px !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}

/* Логотип — слева, не растягивается */
.header .logo,
.header .grid-child:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: auto;
  padding-bottom: 0;
}

.header .logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Навигация — справа, прижата к правому краю */
.container-nav,
.header .grid-child.container-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 1 auto !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
}

/* Название сайта (fallback если нет логотипа) */
.site-name a, .site-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--c-accent) !important;
  text-decoration: none;
}
.site-description {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent-dark) !important;
}

/* ============================================================
   НАВИГАЦИЯ — РЕАЛЬНАЯ СТРУКТУРА CASSIOPEIA (из DevTools):
   header.header.container-header
     div.grid-child.container-nav
       ul#mod-menu1.mod-menu.mod-list.nav
         li.nav-item > a   ← просто <a>, без .nav-link!
   Шаблон: template.min.css задаёт color через var(--link-color)
   и .container-header .mod-menu a { color: currentcolor }
   Перебиваем через: 1) переопределение --link-color в header,
   2) прямой color с ID-селектором #mod-menu1.
   ============================================================ */

/* Фон области навигации */
header.header {
  background: var(--c-main) !important;
  /* Переопределяем link-color только внутри шапки */
  --link-color: #2c1a14;
  --link-color-rgb: 44, 26, 20;
  --link-opacity: 1;
}

/* Меню — горизонтальный ряд, выравнивание по правому краю */
ul#mod-menu1,
.container-header .mod-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Ссылки меню — реальный селектор */
#mod-menu1 li a,
.container-header .mod-menu li a,
header.header .mod-menu a,
header.header .mod-list a {
  color: #2c1a14 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}

/* Hover и активный */
#mod-menu1 li a:hover,
#mod-menu1 li a:focus,
#mod-menu1 li.active > a,
#mod-menu1 li.current > a,
header.header .mod-menu li.active > a,
header.header .mod-menu li.current > a {
  color: #a43732 !important;
  text-decoration: none !important;
}

/* Подчёркивание при hover — десктоп */
#mod-menu1 li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: #a43732;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
#mod-menu1 li a:hover::after,
#mod-menu1 li.active > a::after,
#mod-menu1 li.current > a::after {
  transform: scaleX(1);
}

/* ── Мобильные ≤ 575px: компактнее ── */
@media (max-width: 575px) {
  header.header { padding: 6px 12px !important; }
  .header .logo img { height: 36px !important; }

  #mod-menu1 li a,
  header.header .mod-menu a {
    font-size: 11px !important;
    padding: 5px 6px !important;
    letter-spacing: 0 !important;
  }
}

/* ── 576–767px ── */
@media (min-width: 576px) and (max-width: 767px) {
  .header .logo img { height: 42px !important; }

  #mod-menu1 li a,
  header.header .mod-menu a {
    font-size: 12px !important;
    padding: 6px 9px !important;
  }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
#sp-breadcrumbs {
  position: relative !important;
  top: auto !important;
  background: var(--c-main-light);
  border-bottom: 1px solid var(--c-border);
  padding: 9px 0;
  clear: both;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 2px 0;
  flex-wrap: wrap;
}

.breadcrumb-item,
.breadcrumb-item a,
.breadcrumb-item span {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
}

/* ─── УБИРАЕМ ИКОНКУ ЛОКАЦИИ / ДОМ / ЛЮБОЙ ЗНАЧОК ─── */
/* Font Awesome + Cassiopeia icon-fw иконка в первом элементе */
.breadcrumb-item svg,
.breadcrumb-item .icon,
.breadcrumb-item .icon-home,
.breadcrumb-item .icon-location,
.breadcrumb-item .icon-map-marker,
.breadcrumb-item .fa,
.breadcrumb-item .fas,
.breadcrumb-item .far,
.breadcrumb-item .fab,
.breadcrumb-item span.divider,
.breadcrumb-item span[class*="icon-"],
#sp-breadcrumbs svg,
#sp-breadcrumbs .icon,
#sp-breadcrumbs .fas,
#sp-breadcrumbs span[class*="icon-"],
#sp-breadcrumbs span.divider,
.breadcrumb-item:first-child svg,
.breadcrumb-item:first-child span[aria-hidden],
.breadcrumb-item:first-child img,
/* Cassiopeia Joomla 6 конкретный класс из скриншота */
span.divider.icon-location,
span.divider.icon-fw,
.icon-fw.icon-location,
.mod-breadcrumbs__divider {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Текст первого элемента (дом/главная) — показываем */
.breadcrumb-item:first-child a,
.breadcrumb-item:first-child span:not([aria-hidden]) {
  display: inline !important;
}

.breadcrumb-item a {
  color: var(--c-accent) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-item a:hover { color: var(--c-accent-dark) !important; }
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--c-muted);
}

/* ============================================================
   СКРЫВАЕМ ЛИШНЕЕ (метаданные статей, навигация)
   ============================================================ */
.article-info,
dl.article-info,
.com-content-article__info,
.content-info,
dd.createdby, dd.category-name, dd.create, dd.hits {
  display: none !important;
}

.pager,
.pagination-nav,
.com-content-article__navigation,
nav[aria-label="article navigation"] {
  display: none !important;
}

/* ============================================================
   КОНТЕНТ
   ============================================================ */
#sp-component {
  background: var(--c-white);
  padding-top: 36px;
  padding-bottom: 64px;
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */

/* H1 — без полосок */
h1.page-header,
.page-header,
.com-content-article h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.15;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

h1.page-header::after, .page-header::after { display: none; }

/* H2 */
.com-content-article__body h2,
article h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--c-accent);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

/* H3 */
.com-content-article__body h3,
article h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text);
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.3;
}

/* Основной текст */
.com-content-article__body p,
article p {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9625rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 1em;
}

.com-content-article__body td p { text-align: left; }

/* Ссылки */
.com-content-article__body a,
article a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(164, 55, 50, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.com-content-article__body a:hover,
article a:hover {
  color: var(--c-accent-dark);
  border-bottom-color: var(--c-accent-dark);
}

/* Изображения */
.com-content-article__body img,
article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(164, 55, 50, 0.09);
  margin: 6px 0;
  display: block;
}

/* Списки */
.com-content-article__body ul,
.com-content-article__body ol {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  padding-left: 1.4em;
  margin-bottom: 1em;
  color: var(--c-text);
}
.com-content-article__body li { margin-bottom: 5px; }

/* ============================================================
   ЦЕНЫ — inline стиль #a43732 из редактора
   ============================================================ */
[style*="color: #a43732"],
[style*="color:#a43732"],
[style*="color: rgb(164, 55, 50)"] {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 1.2rem !important;
  color: var(--c-accent) !important;
  font-weight: 500 !important;
  display: block;
  text-align: center;
  margin: 8px 0 4px;
}

/* ============================================================
   КАРТОЧКИ МЕНЮ
   ============================================================ */
.com-content-article__body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
}

.com-content-article__body table td {
  padding: 0 12px 32px;
  vertical-align: top;
  text-align: center;
}

.com-content-article__body table td img,
.com-content-article__body .cake-card img {
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(164, 55, 50, 0.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
  object-fit: cover;
}

.com-content-article__body table td:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(164, 55, 50, 0.20);
}

/* ============================================================
   КНОПКИ — глобальный сброс Bootstrap синего цвета
   ============================================================ */

/* Bootstrap .btn-primary (синяя по умолчанию) → наш оранжево-красный */
.btn-primary,
a.btn-primary {
  background-color: var(--c-btn) !important;
  border-color: var(--c-btn) !important;
  color: #fff !important;
  --bs-btn-bg:           var(--c-btn);
  --bs-btn-border-color: var(--c-btn);
  --bs-btn-hover-bg:     var(--c-btn-dark);
  --bs-btn-hover-border-color: var(--c-btn-dark);
  --bs-btn-active-bg:    var(--c-btn-dark);
  --bs-btn-focus-shadow-rgb: 164, 55, 50;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
a.btn-primary:hover {
  background-color: var(--c-btn-dark) !important;
  border-color: var(--c-btn-dark) !important;
  color: #fff !important;
}

/* Bootstrap .btn-warning → акцентный тёмно-красный */
.btn-warning,
a.btn-warning {
  background-color: var(--c-accent) !important;
  border-color: var(--c-accent) !important;
  color: #fff !important;
  --bs-btn-bg:           var(--c-accent);
  --bs-btn-border-color: var(--c-accent);
  --bs-btn-hover-bg:     var(--c-accent-dark);
  --bs-btn-hover-border-color: var(--c-accent-dark);
  --bs-btn-active-bg:    var(--c-accent-dark);
  --bs-btn-focus-shadow-rgb: 164, 55, 50;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
a.btn-warning:hover {
  background-color: var(--c-accent-dark) !important;
  border-color: var(--c-accent-dark) !important;
  color: #fff !important;
}

/* Синее focus-кольцо у всех кнопок → заменяем на тёплое */
.btn:focus,
.btn:focus-visible,
.btn:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(164, 55, 50, 0.3) !important;
  outline: none !important;
}

/* Кнопки мессенджеров в статьях */
.com-content-article__body .btn,
.com-content-article__body a.btn {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 11px 24px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-block;
  margin: 4px 5px 4px 0;
}

.com-content-article__body .btn:hover,
.com-content-article__body a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  filter: brightness(1.08);
  text-decoration: none !important;
}

/* ============================================================
   ГАЛЕРЕЯ / ИЗОБРАЖЕНИЯ В СТАТЬЯХ
   ============================================================ */
.com-content-article__body figure {
  overflow: hidden;
  border-radius: 4px;
  margin: 0 0 16px;
}

.com-content-article__body figure img {
  transition: transform 0.4s ease;
  width: 100%;
  border-radius: 4px;
}

.com-content-article__body figure:hover img { transform: scale(1.04); }

/* Float-фото (раздел «Обо мне») */
.com-content-article__body img[style*="float"] {
  border-radius: 6px !important;
  box-shadow: 0 8px 28px rgba(164, 55, 50, 0.14) !important;
}

/* ============================================================
   КАРТОЧКИ Bootstrap
   ============================================================ */
.card {
  border-color: var(--c-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(164, 55, 50, 0.07);
}
.card-header {
  background: var(--c-main-light);
  border-bottom-color: var(--c-border);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ============================================================
   ФУТЕР — пользовательский модуль
   ============================================================ */
footer, .footer, #sp-footer {
  background: var(--c-main) !important;
  border-top: none !important;                            /* без полоски, как шапка */
  box-shadow: 0 -2px 12px rgba(44, 26, 20, 0.10);       /* мягкая тень сверху */
  padding: 0 !important;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--c-text);
}

/* Внутренний контент футера */
.footer-custom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col__heading {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
  display: block;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--c-text);
  display: block;
  margin-bottom: 2px;
}
.footer-brand-sub {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  display: block;
  margin-bottom: 16px;
}
.footer-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--c-accent);
  display: block;
  margin-bottom: 10px;
}
.footer-tagline {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--c-text) !important;
  text-decoration: none;
  border: none !important;
  transition: color 0.2s ease;
}
.footer-links-list a:hover { color: var(--c-accent) !important; }

.footer-contact-item {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--c-text);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.footer-contact-item a {
  color: var(--c-text) !important;
  text-decoration: none;
  border: none !important;
}
.footer-contact-item a:hover { color: var(--c-accent) !important; }
.footer-contact-icon { flex-shrink: 0; margin-top: 1px; }

.footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(164,55,50,0.1);
  color: var(--c-accent) !important;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  border: none !important;
  transition: background 0.2s, color 0.2s;
}
.footer-social-btn:hover {
  background: var(--c-accent) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(44,26,20,0.12);
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--c-muted);
}
.footer-made {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--c-muted);
  font-style: italic;
}

/* Встроенный Cassiopeia-футер (если используется) */
footer a, .footer a, #sp-footer a {
  color: var(--c-accent) !important;
  text-decoration: none;
  border: none !important;
  transition: color 0.2s ease;
}
footer a:hover, .footer a:hover { color: var(--c-accent-dark) !important; }
footer p, .footer p { color: var(--c-muted); margin: 0; }

/* ============================================================
   АДАПТИВ — ПЛАНШЕТ (992px — 1199px)
   ============================================================ */
@media (max-width: 1199px) {
  .footer-custom-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
  }
  /* 4-я колонка (контакты) — переносится на новую строку */
  .footer-custom-inner > *:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}

/* ============================================================
   АДАПТИВ — МОБИЛЬНЫЙ (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* Шапка */
  .header .logo img { height: 40px !important; }

  /* H1 */
  h1.page-header, .page-header { font-size: 1.6rem !important; }

  /* Контент */
  #sp-component {
    padding-top: 20px !important;
    padding-bottom: 36px !important;
  }

  /* Текст в статьях */
  .com-content-article__body p,
  article p { font-size: 0.9rem; }

  /* Кнопки мессенджеров — на всю ширину */
  .com-content-article__body .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: 6px 0;
  }

  /* Таблица карточек меню — в 1 колонку */
  .com-content-article__body table td {
    display: block;
    width: 100%;
    padding: 0 0 28px;
  }

  /* Изображения с float — убираем плавание */
  .com-content-article__body img[style*="float: left"],
  .com-content-article__body img[style*="float:left"] {
    float: none !important;
    margin: 0 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .com-content-article__body img[style*="float: right"],
  .com-content-article__body img[style*="float:right"] {
    float: none !important;
    margin: 0 0 16px !important;
    width: 100% !important;
  }

  /* Хлебные крошки */
  #sp-breadcrumbs { padding: 6px 0; }
  .breadcrumb { flex-wrap: wrap; }
  .breadcrumb-item, .breadcrumb-item a {
    font-size: 11px;
  }

  /* Футер — в 1 колонку */
  .footer-custom-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 20px 20px !important;
  }
  .footer-custom-inner > *:last-child {
    grid-column: auto !important;
    display: block !important;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 12px 20px;
  }

  /* Строка с flexbox — переносим элементы */
  .menu-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }
  .home-categories {
    grid-template-columns: 1fr 1fr !important;
  }
  .about-values {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   АДАПТИВ — ОЧЕНЬ МАЛЕНЬКИЙ (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr !important; }
  .home-categories { grid-template-columns: 1fr 1fr !important; }

  h1.page-header, .page-header { font-size: 1.4rem !important; }

  .com-content-article__body h2,
  article h2 { font-size: 1.3rem !important; }
}

/* ============================================================
   НАВИГАЦИЯ — РЕАЛЬНАЯ СТРУКТУРА CASSIOPEIA
   DOM: header.header > .container-nav > ul#mod-menu1.mod-menu.mod-list.nav
        > li.nav-item > a   (просто <a>, без класса .nav-link!)
   Побеждающие правила в template.min.css:
     .container-header .mod-menu a { color: currentcolor }
     a { color: var(--link-color) }
   Перебиваем через ID #mod-menu1 + прямой color.
   ============================================================ */

/* Переопределяем CSS-переменную --link-color только в шапке */
header.header,
.container-header {
  --link-color: #2c1a14;
  --link-color-rgb: 44, 26, 20;
}

/* Основные ссылки меню — ID даёт специфичность (1,0,0) */
#mod-menu1 li a,
#mod-menu1 li > a,
.container-header .mod-menu li a,
.container-header .mod-menu > li > a,
header.header .mod-menu a,
header.header .mod-list a {
  color: #2c1a14 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  opacity: 1 !important;
  padding: 8px 14px !important;
  position: relative;
  transition: color 0.2s ease;
  display: inline-block;
}

/* Hover и активный пункт */
#mod-menu1 li a:hover,
#mod-menu1 li a:focus,
#mod-menu1 li.active > a,
#mod-menu1 li.current > a,
.container-header .mod-menu li.active > a,
.container-header .mod-menu li.current > a,
header.header .mod-menu a:hover {
  color: #a43732 !important;
  text-decoration: none !important;
}

/* Подчёркивание при hover — десктоп */
@media (min-width: 576px) {
  #mod-menu1 li a::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 14px; right: 14px;
    height: 2px;
    background: #a43732;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  #mod-menu1 li a:hover::after,
  #mod-menu1 li.active > a::after,
  #mod-menu1 li.current > a::after {
    transform: scaleX(1);
  }
}

/* ============================================================
   ЕДИНЫЕ ЭЛЕМЕНТЫ СТРАНИЦ — section-header, divider, label
   Используются на: Отзывы, Меню, Галерея, Обо мне, Мои работы
   ============================================================ */

.reviews-page-wrap,
.page-content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Шапка секции */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a43732;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 2.6rem !important;
  font-weight: 400 !important;
  color: #2c1a14 !important;
  margin: 0 0 20px !important;
  line-height: 1.15;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: #d9a898;
}

.divider-diamond {
  font-size: 10px;
  color: #a43732;
  line-height: 1;
}

.section-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: #8a6a65;
  margin: 0;
}

.section-subtitle a {
  color: #a43732;
  text-decoration: none;
  border-bottom: 1px solid rgba(164,55,50,0.3);
  transition: border-color 0.2s;
}

.section-subtitle a:hover { border-color: #a43732; }

/* ============================================================
   СТРАНИЦА ОТЗЫВОВ
   ============================================================ */

.reviews-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.review-card-new {
  background: #ffffff;
  border-radius: 4px;
  padding: 32px 28px 24px;
  box-shadow: 0 2px 16px rgba(44, 26, 20, 0.07);
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.review-card-new:hover {
  box-shadow: 0 6px 28px rgba(44, 26, 20, 0.12);
  transform: translateY(-3px);
}

.review-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5rem;
  line-height: 0.7;
  color: #ecc6bd;
  margin-bottom: 16px;
  user-select: none;
  flex-shrink: 0;
}

.review-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2c1a14;
  margin: 0 0 20px;
  flex-grow: 1;
}

.review-sep {
  width: 32px;
  height: 2px;
  background: #a43732;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.review-author-name {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c1a14;
  margin-bottom: 4px;
}

.review-author-meta {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: #8a6a65;
  margin-bottom: 10px;
}

.review-stars-new {
  font-size: 0.85rem;
  color: #a43732;
  letter-spacing: 2px;
}

/* CTA блок */
.reviews-cta-new {
  text-align: center;
  padding: 48px 24px;
  background: #f7e8e3;
  border-radius: 4px;
}

.reviews-cta-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #2c1a14;
  margin: 0 0 24px;
}

.reviews-cta-btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 2px;
  margin: 0 8px 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  background: #ee5133;
  color: #ffffff !important;
  border: 2px solid #ee5133;
}

.reviews-cta-btn:hover {
  background: #c43e24 !important;
  border-color: #c43e24 !important;
  color: #ffffff !important;
}

.reviews-cta-btn--outline {
  background: transparent !important;
  color: #685336 !important;
  border: 2px solid #685336;
}

.reviews-cta-btn--outline:hover {
  background: #685336 !important;
  color: #ffffff !important;
}

/* Адаптив — отзывы */
@media (max-width: 900px) {
  .reviews-grid-new { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2rem !important; }
}

@media (max-width: 560px) {
  .reviews-page-wrap,
  .page-content-wrap { padding: 32px 16px 48px; }
  .reviews-grid-new { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem !important; }
  .review-card-new { padding: 24px 20px 20px; }
  .review-quote { font-size: 3.5rem; }
  .reviews-cta-btn { display: block; margin: 0 0 12px; }
}

/* ============================================================
   ГЛАВНАЯ СТРАНИЦА — gh-* классы
   Используют токены из :root и шрифты из @import выше.
   Не дублируют .section-header / .section-title / .reviews-cta-btn.
   ============================================================ */

/* ── HERO ── */
.gh-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(140deg, #2c1a14 0%, #4a2e24 35%, #7e2b27 70%, #a43732 100%);
  padding: 72px 40px 100px;
  margin: 0 -24px 0;        /* растянуть за padding статьи Joomla */
}

.gh-hero__decor-script {
  position: absolute;
  right: -30px; bottom: -20px;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(130px, 20vw, 260px);
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.gh-hero__circle {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.15);
  right: 10%; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.gh-hero__circle::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.08);
}

.gh-hero__content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.gh-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.gh-hero__line {
  display: block;
  width: 36px; height: 1px;
  background: rgba(201,169,110,0.55);
}
.gh-hero__eyebrow-text {
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.9);
}

.gh-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2.3rem, 5vw, 3.8rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1.1 !important;
  color: #fdfaf8 !important;
  margin: 0 0 20px !important;
}
.gh-hero__title em {
  font-style: normal !important;
  color: #c9a96e;
}

.gh-hero__sub {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(253,250,248,0.7);
  line-height: 1.75;
  margin-bottom: 36px;
}

.gh-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Статистика */
.gh-hero__stats {
  position: absolute;
  right: 40px; bottom: 56px;
  display: flex;
  z-index: 1;
}
.gh-stat {
  padding: 18px 26px;
  border-left: 1px solid rgba(253,250,248,0.1);
  text-align: center;
}
.gh-stat__num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 300;
  color: #fdfaf8;
  line-height: 1;
}
.gh-stat__label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,250,248,0.4);
  margin-top: 5px;
}

/* Стрелка вниз */
.gh-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  animation: ghScrollBounce 2.2s ease-in-out infinite;
}
.gh-scroll__text {
  font-family: 'Jost', sans-serif;
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253,250,248,0.3);
}
.gh-scroll__line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(253,250,248,0.4), transparent);
}
@keyframes ghScrollBounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(7px); }
}

/* ── СЕКЦИИ ── */
.gh-section {
  padding: 64px 0;
  margin: 0 -24px;
  padding-left: 40px;
  padding-right: 40px;
}
.gh-section--white { background: #ffffff; }
.gh-section--blush { background: #f7e8e3; }

/* ── КАТАЛОГ КАРТОЧКИ ── */
.gh-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.gh-cat {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44,26,20,0.07);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gh-cat:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(44,26,20,0.13);
}
.gh-cat__img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gh-cat__letter {
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  color: rgba(255,255,255,0.18);
  line-height: 1;
}
.gh-cat__body {
  padding: 14px 18px 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.gh-cat__label {
  font-family: 'Jost', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a43732;
  margin-bottom: 3px;
}
.gh-cat__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; font-weight: 500;
  color: #2c1a14;
}
.gh-cat__price {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: #8a6a65;
  margin-top: 2px;
}
.gh-cat__arrow {
  display: block;
  text-align: right;
  padding: 8px 18px 14px;
  font-size: 1rem;
  color: #a43732;
  transition: transform 0.25s ease;
}
.gh-cat:hover .gh-cat__arrow { transform: translateX(5px); }

/* ── О КАТЕРИНЕ (тёмный блок) ── */
.gh-about {
  background: #2c1a14;
  padding: 68px 40px;
  margin: 0 -24px;
  position: relative;
  overflow: hidden;
}
.gh-about__bg-script {
  position: absolute;
  left: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Great Vibes', cursive;
  font-size: 190px;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}
.gh-about__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.gh-about__text { flex: 1; }

.gh-about__label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 14px;
}
.gh-about__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: #fdfaf8 !important;
  line-height: 1.2 !important;
  margin: 0 0 16px !important;
}
.gh-about__title em { font-style: normal !important; color: #c9a96e; }
.gh-about__body {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.97rem;
  color: rgba(253,250,248,0.6);
  line-height: 1.78;
  max-width: 460px;
}
.gh-about__link {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a96e !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(201,169,110,0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.gh-about__link:hover { border-color: #c9a96e; }

.gh-about__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  width: 270px;
}
.gh-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.gh-feature__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.gh-feature__title {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #fdfaf8;
  margin-bottom: 3px;
}
.gh-feature__desc {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: rgba(253,250,248,0.42);
  line-height: 1.5;
}

/* ── ВКУСЫ ── */
.gh-flavours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.gh-flavour {
  background: #fff;
  border: 1px solid #f0e0d8;
  border-radius: 4px;
  padding: 26px 22px 20px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.gh-flavour:hover {
  box-shadow: 0 8px 24px rgba(44,26,20,0.09);
  transform: translateY(-3px);
}
.gh-flavour__num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem; font-weight: 300;
  color: #ecc6bd;
  line-height: 1;
  margin-bottom: 6px;
}
.gh-flavour h3.gh-flavour__name {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: #2c1a14 !important;
  margin: 0 0 8px !important;
}
.gh-flavour__desc {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #8a6a65;
  line-height: 1.65;
  margin-bottom: 12px;
}
.gh-flavour__tag {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a43732;
  background: #f7e8e3;
  padding: 3px 9px;
  border-radius: 2px;
}

/* ── КАК ЗАКАЗАТЬ ── */
.gh-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}
.gh-step {
  flex: 1;
  min-width: 160px;
  max-width: 210px;
  text-align: center;
  padding: 0 16px;
}
.gh-step__num {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid #a43732;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem; font-weight: 400;
  color: #a43732;
  margin: 0 auto 14px;
}
.gh-step h3.gh-step__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: #2c1a14 !important;
  margin: 0 0 8px !important;
}
.gh-step__desc {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #8a6a65;
  line-height: 1.6;
}
.gh-step__sep {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #d9a898;
  margin-top: 12px;
  align-self: flex-start;
}

/* ── ФИНАЛЬНЫЙ CTA ── */
.gh-cta {
  background: linear-gradient(140deg, #2c1a14 0%, #4a2e24 50%, #7e2b27 100%);
  padding: 72px 40px;
  margin: 0 -24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.gh-cta__script {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Great Vibes', cursive;
  font-size: clamp(90px, 16vw, 200px);
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.gh-cta__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: #fdfaf8 !important;
  margin: 10px 0 14px !important;
  line-height: 1.15;
  position: relative; z-index: 1;
}
.gh-cta__title em { font-style: normal !important; color: #c9a96e; }
.gh-cta__sub {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(253,250,248,0.58);
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.gh-cta__phone {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem; font-weight: 300;
  color: #fdfaf8 !important;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative; z-index: 1;
  margin-bottom: 22px;
}
.gh-cta__phone:hover { color: #c9a96e !important; }
.gh-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative; z-index: 1;
}

/* ── АДАПТИВ ГЛАВНОЙ ── */
@media (max-width: 900px) {
  .gh-cats,
  .gh-flavours       { grid-template-columns: repeat(2, 1fr); }
  .gh-about__inner   { flex-direction: column; gap: 40px; }
  .gh-about__features { width: 100%; }
  .gh-hero__stats    { display: none; }
  .gh-hero           { padding: 56px 24px 80px; margin: 0 -16px; }
  .gh-section        { padding: 48px 24px; margin: 0 -16px; }
  .gh-about,
  .gh-cta            { padding: 52px 24px; margin: 0 -16px; }
}
@media (max-width: 580px) {
  .gh-cats,
  .gh-flavours       { grid-template-columns: 1fr; }
  .gh-hero__title    { font-size: 2.1rem !important; }
  .gh-steps          { flex-direction: column; align-items: center; }
  .gh-step           { max-width: 100%; }
  .gh-step__sep      { transform: rotate(90deg); margin: -2px 0; }
  .gh-cta__phone     { font-size: 1.6rem; }
}

