/* Современные шрифты без засечек и контейнер на всю ширину блога */
.jewel-price-widget {
  width: 100% !important;
  max-width: 100% !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 30px 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  box-sizing: border-box;
}

/* Заголовки таблицы */
.jewel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1d20;
  padding: 18px 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-prices {
  display: flex;
  gap: 20px;
  width: 260px;
}
.header-metal {
  flex: 1;
  text-align: center;
}

/* Строки прайса */
.jewel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f4f8;
  transition: background 0.2s ease;
  gap: 40px; /* Большой зазор, чтобы текст никогда не слипался с ценой */
}
.jewel-row:last-child {
  border-bottom: none;
}
.jewel-row:nth-child(even) {
  background: #fcfdfe;
}
.jewel-row:hover {
  background: #f7fafc;
}

/* Название услуги */
.jewel-name {
  flex: 1;
  color: #2d3748;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

/* Блок цен */
.jewel-prices-block {
  display: flex;
  gap: 20px;
  width: 260px;
  flex-shrink: 0;
}

/* Современные скругленные ценники-плашки */
.badge {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* Матовое благородное золото */
.badge.gold {
  background: #fdf6e6;
  color: #b3852b;
}

/* Матовое серебро */
.badge.silver {
  background: #f0f2f5;
  color: #5c6470;
}

/* Статус договорной цены */
.badge.status {
  background: #f8fafc;
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
}

/* Адаптивность: на смартфонах прайс перестраивается в удобные карточки */
@media screen and (max-width: 768px) {
  .jewel-header {
    display: none;
  }
  .jewel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px;
  }
  .jewel-prices-block {
    width: 100%;
    gap: 12px;
  }
  .jewel-name {
    font-size: 15px;
  }
}

.skupka-widget {
  width: 100% !important;
  max-width: 500px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
}
.skupka-widget h2 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.skupka-field {
  margin-bottom: 20px;
}
.skupka-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}
.skupka-widget select,
.skupka-widget input[type="number"] {
  width: 100% !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
  outline: none !important;
  box-sizing: border-box !important;
  height: auto !important;
}
.skupka-widget select:focus,
.skupka-widget input[type="number"]:focus {
  border-color: #0f172a !important;
  background-color: #ffffff !important;
}
.metal-toggle {
  display: flex;
  gap: 12px;
}
.metal-toggle input[type="radio"] {
  display: none !important;
}
.btn-metal {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  transition: all 0.2s ease;
}
#metal-gold:checked + .btn-gold {
  border-color: #b3852b;
  background: #fdf6e6;
  color: #b3852b;
}
#metal-silver:checked + .btn-silver {
  border-color: #64748b;
  background: #f1f5f9;
  color: #475569;
}
#metal-platinum:checked + .btn-platinum {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #334155;
}
#metal-palladium:checked + .btn-palladium {
    border-color: #475569;
    background: #e2e8f0;
    color: #1e293b;
}
.skupka-result {
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 25px;
  border: 1px dashed #cbd5e1;
}
.result-label {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.result-price {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}
.result-price span {
  color: #9a7326;
}

/* ==========================================================================
   ФОРМА ОБРАТНОЙ СВЯЗИ (Исправление заголовков и галочки согласия)
   ========================================================================== */

/* Скрываем слово "Поля" и технический заголовок группы */
.contact-form fieldset legend,
.contact-form .fields-container h3 {
    display: none !important;
}

/* Скрываем пустой контейнер названия ТОЛЬКО для галочки согласия */
.contact-form .mail-context .field-label,
.contact-form .mail-context .control-label,
.contact-form [class*="согласие"] .control-label {
    display: none !important;
}

/* Прижимаем чекбокс согласия поближе к кнопке отправки */
.contact-form .mail-context .control-group,
.contact-form .mail-context .render-field {
    margin-top: 5px !important;
    margin-bottom: 20px !important;
}


/* ==========================================================================
   БЛОК ИНФОРМАЦИИ О КОНТАКТАХ (Минимализм: точки для адреса, значки для связи)
   ========================================================================== */

/* Общие стили для текстового блока контактов */
.contact-address, 
.contact-contactinfo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #1e293b !important;
}

/* Выстраиваем все строки ровно по левому краю с одинаковыми отступами */
.contact-address dd, 
.contact-contactinfo dd {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-bottom: 12px !important;
}

/* Прячем стандартные двоеточия и текстовые подписи Joomla (Улица:, Телефон: и т.д.) */
.contact-address dt, 
.contact-contactinfo dt {
    display: none !important;
}

/* 1. ГЕОГРАФИЯ (Строки адреса): Создаем одинаковую аккуратную красную точку */
.contact-address dd::before {
    content: "•" !important;
    color: #1e3a8a !important; /* Новый глубокий синий под цвет Cassiopeia */
    font-size: 24px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Выделяем саму улицу и дом чуть плотнее остальных строк */
.contact-street {
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* 2. СВЯЗЬ (Телефон): Ставим аккуратную классическую трубку */
.contact-telephone::before {
    content: "📞" !important;
    font-size: 14px !important;
}

/* 3. СВЯЗЬ (Email): Ставим аккуратный конверт */
.contact-emailto::before {
    content: "✉️" !important;
    font-size: 14px !important;
}

/* Стили для телефона в шапке с правильной дистанцией */
.header-phone {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
    
    float: right; 
    
    /* ОТСТУП ОТ КРАЯ ЭКРАНА (дистанция для жениха) */
    margin-right: 15px; 
    /* Мягкий отступ сверху, чтобы телефон не лип к верхнему потолку */
    margin-top: 5px; 
}

.header-phone:hover {
    color: #bfa364;
    text-decoration: none;
}

.phone-icon {
    font-size: 14px;
    margin-right: 5px;
}

/* На мобильных отменяем отступы и центрируем, там все равны */
@media (max-width: 576px) {
    .header-phone {
        float: none;
        margin-right: 0;
        margin-top: 0;
        font-size: 18px;
        display: block;
        text-align: center;
        padding: 8px 0;
    }
}

/* Основной контейнер для двух блоков Ремонт*/
.jewelry-features {
  display: flex;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
  padding: 10px;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Карточка с четкой золотой рамкой */
.jewelry-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background: #ffffff;
  /* Четкая золотая рамка */
  border: 2px solid #D4AF37; 
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Эффект «дорогого» наведения */
.jewelry-card:hover {
  transform: translateY(-4px);
  border-color: #B8860B; /* Темное золото при наведении */
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.25);
  background: #FFFDF9; /* Легкий благородный отлив */
}

/* Контейнер для иконки слева */
.jewelry-icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFF9E6;
  border: 1px solid #FFEAA7;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Анимация пульсации иконки при наведении */
.jewelry-card:hover .jewelry-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.jewelry-icon-box svg {
  width: 38px;
  height: 38px;
}

/* Текстовый блок */
.jewelry-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Верхний ярлык (бывший серый) */
.jewelry-label {
  font-size: 13px;
  color: #8A6F46; /* Золотисто-коричневый, контрастный */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Главный текст — глубокий черный, крупный */
.jewelry-value {
  font-size: 22px;
  color: #111111;
  font-weight: 800;
  line-height: 1.2;
}

/* Адаптивность для смартфонов */
@media (max-width: 650px) {
  .jewelry-features {
    flex-direction: column;
    gap: 16px;
  }
  .jewelry-card {
    padding: 20px;
  }
  .jewelry-value {
    font-size: 19px;
  }
}
/* Принудительное отображение картинок внутри контейнера */
.jewelry-icon-box svg {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
}
/* Настройка размера и центрирования эмодзи-иконок */
.jewelry-emoji {
  font-size: 32px;
  line-height: 1;
  display: inline-block;
}

/* Основной контейнер-сетка для мастера и карты */
.jewelry-contact-section {
  display: flex;
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
  padding: 10px;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Карточка мастера с золотой рамкой */
.master-card {
  flex: 1;
  background: #ffffff;
  border: 2px solid #D4AF37; /* Наша фирменная золотая рамка */
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
}

/* Золотой мини-бейдж сверху */
.master-badge {
  align-self: flex-start;
  background: #FFF9E6;
  color: #8A6F46;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Имя мастера — крупно и глубоким черным цветом */
.master-name {
  margin: 0 0 4px 0;
  font-size: 26px;
  color: #111111;
  font-weight: 800;
}

/* Специализация */
.master-spec {
  font-size: 14px;
  color: #8A6F46;
  font-weight: 600;
}

/* Декоративная золотая линия */
.master-divider {
  width: 50px;
  height: 3px;
  background: #D4AF37;
  margin: 20px 0;
  border-radius: 2px;
}

/* Список контактов */
.master-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.master-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.master-info-emoji {
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
}

.master-info-text {
  margin: 0;
  font-size: 16px;
  color: #333333;
  line-height: 1.4;
  font-weight: 500;
}

/* Кликабельный номер телефона */
.master-phone {
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.master-phone:hover {
  color: #B8860B;
}

/* Красивая золотая кнопка */
.btn-primary {
  display: inline-block;
  text-align: center;
  background: #D4AF37;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: #B8860B;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

/* Контейнер для карты справа */
.map-container-box {
  flex: 1;
  border: 2px solid #D4AF37; /* Золотая рамка в тон карточки */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
  min-height: 300px;
  background: #fdfdfd;
}

/* Заглушка пока карта не вставлена */
.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8c8c8c;
  gap: 10px;
}

.map-emoji {
  font-size: 40px;
}

/* Адаптивность для смартфонов */
@media (max-width: 768px) {
  .jewelry-contact-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .master-card {
    padding: 24px;
  }
  
  .map-container-box {
    min-height: 250px;
  }
}
/* Фикс для высоты Яндекс.Скрипта в правой колонке */
.luxury-map-wrapper {
  flex: 1.2;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  height: 400px; /* Выровняли высоту под скрипт */
}

/* Подключаем шрифт Montserrat */
@import url('https://googleapis.com');

/* =================================================== */
/* ПЕРЕБИВАЕМ СТАНДАРТНЫЕ CALC-СТИЛИ КАССИОПЕИ         */
/* =================================================== */

/* ГЛАВНЫЙ ЗАГОЛОВКОК (H1) */
h1, .h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 38px !important; 
  font-weight: 300 !important; 
  color: #1c1c1e !important;
  letter-spacing: 0.06em !important; 
  text-transform: uppercase !important; 
  margin-bottom: 30px !important;
  line-height: 1.2 !important;
  text-align: center !important; 
  /* Эффект плавной смены цвета за 0.3 секунды */
  transition: color 0.3s ease !important;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ НА H1 */
h1:hover, .h1:hover {
  color: #c5a059 !important; /* Мягкое благородное золото */
  cursor: default;
}

/* ЗАГОЛОВКИ РАЗДЕЛОВ (H2) */
h2, .h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 24px !important; 
  font-weight: 500 !important;
  color: #111111 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-top: 50px !important;
  margin-bottom: 25px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e5e5e5 !important; 
  position: relative !important;
  text-align: left !important;
  /* Эффект плавной смены цвета за 0.3 секунды */
  transition: color 0.3s ease !important;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ НА H2 */
h2:hover, .h2:hover {
  color: #c5a059 !important; /* Мягкое благородное золото */
  cursor: default;
}

/* Наш фирменный ювелирный маркер-золото поверх линии */
h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 60px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #c5a059, #e5c17d) !important;
}

/* ПОДЗАГОЛОВКИ (H3) */
h3, .h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #c5a059 !important; /* Изначально золотой */
  letter-spacing: 0.02em !important;
  margin-top: 35px !important;
}

/* =================================================== */
/* СТИЛИ ДЛЯ СТРАНИЦ КАТЕГОРИЙ И БЛОГОВ JOOMLA         */
/* =================================================== */

/* 1. ГЛАВНЫЙ ЗАГОЛОВОК КАТЕГОРИИ И МАТЕРИАЛОВ (H1) */ 
.com-content-category-blog .page-header h1,
.com-content-article .page-header h1 { /* Добавили класс для обычных материалов */
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 30px !important; 
    font-weight: 300 !important; 
    color: #1c1c1e !important; 
    letter-spacing: 0.06em !important; 
    text-transform: uppercase !important; 
    margin-bottom: 30px !important; 
	margin-top: 20px !important; 
    line-height: 1.2 !important; 
    text-align: center !important; 
    transition: color 0.3s ease !important; 
} 

.com-content-category-blog .page-header h1:hover,
.com-content-article .page-header h1:hover { /* Эффект золотого наведения и для материалов */
    color: #c5a059 !important; 
    cursor: default; 
}

/* 2. ЗАГОЛОВКИ В ОПИСАНИИ (H2) */
.category-desc h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: #111111 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-top: 50px !important;
  margin-bottom: 25px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e5e5e5 !important;
  position: relative !important;
  transition: color 0.3s ease !important;
}
.category-desc h2:hover {
  color: #c5a059 !important;
  cursor: default;
}
/* Золотая линия под H2 */
.category-desc h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 60px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #c5a059, #e5c17d) !important;
}

/* =================================================== */
/* АДАПТИВНОСТЬ: СНИЖАЕМ РАЗМЕРЫ НА МОБИЛЬНЫХ ЭКРАНАХ  */
/* =================================================== */
@media (max-width: 768px) {
  /* Уменьшаем главный H1 на смартфонах во ВСЕХ типах меню (блог и списки) */
  .com-content-category-blog .page-header h1,
  .com-content-category .content-category h1 {
    font-size: 24px !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.04em !important;
  }
  
  /* Уменьшаем H2 в описании и поджимаем отступы */
  .category-desc h2 {
    font-size: 18px !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    letter-spacing: 0.05em !important;
  }
  
  /* Делаем золотую черточку чуть тоньше на мобилках */
  .category-desc h2::after {
    width: 45px !important;
    height: 2px !important;
  }
}


/* 3. ОСНОВНОЙ ТЕКСТ В ОПИСАНИИ (P) */
.category-desc p {
  font-family: 'Montserrat', sans-serif !important;
  color: #2c2c2e !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
}

/* 4. СПИСКИ С ЗОЛОТЫМИ ТОЧКАМИ (UL / LI) */
.category-desc ul {
  list-style: none !important;
  padding-left: 5px !important;
  margin: 20px 0 !important;
}
.category-desc ul li {
  font-family: 'Montserrat', sans-serif !important;
  position: relative !important;
  padding-left: 24px !important;
  margin-bottom: 12px !important;
  font-size: 15px !important;
  color: #2c2c2e !important;
  line-height: 1.6 !important;
}
.category-desc ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  background-color: #c5a059 !important;
  border-radius: 50% !important;
}

/* Делаем нижнее меню горизонтальным на ПК и мобильных */
ul.footer-compact-menu,
.footer-compact-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; /* Чтобы на мобильных пункты красиво переносились, если не влезут в экран */
    justify-content: center !important; /* Центрируем меню по центру подвала */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Отступы между пунктами меню */
.footer-compact-menu li {
    display: inline-block !important;
    margin-left: 12px !important; /* Дистанция между ссылками */
    margin-right: 12px !important;
    padding: 4px 0 !important;
}

/* На всякий случай убираем стандартные точки списков шаблона */
.footer-compact-menu li::before {
    display: none !important;
}

/* Добавляем отступ снизу у меню, чтобы отодвинуть копирайт */
ul.footer-compact-menu,
.footer-compact-menu {
    margin-bottom: 20px !important; /* Размер пробела между меню и копирайтом */
}

/* Новые стили сетки — 4 картинки в ряд на ПК и вертикально на мобилках */ 
.jewelry-categories-grid { 
  display: flex !important;                     /* На мобилках выстраиваем вертикально */
  flex-direction: column !important;
  gap: 15px !important;                         /* Красивые отступы между карточками */ 
  margin-bottom: 30px !important;               /* Отступ снизу от всего блока */ 
}

@media (min-width: 1024px) {
  .jewelry-categories-grid {
    display: grid !important;                   /* На ПК включаем сетку */
    grid-template-columns: repeat(4, 1fr) !important; /* Строго 4 колонки одинаковой ширины */
  }
}

/* Стили для каждой карточки товара в ряду */
.jewelry-categories-grid .category-item {
    flex: 1 !important; /* Раздаем всем карточкам одинаковую ширину */
    text-align: center !important; /* Центрируем заголовки и картинки */
    background: #ffffff; /* Белый фон для карточки (при необходимости) */
    padding: 10px !important;
    border-radius: 8px !important; /* Мягкое скругление углов */
}

//* Ограничиваем картинки по высоте на ПК, чтобы не плясали, и обрезаем лишнее */
.jewelry-categories-grid .category-item img {
    width: 100% !important;
    height: 160px !important; /* Намертво выравнивает высоту всех фото */
    object-fit: cover !important; /* Умная обрезка: картинки не сплющиваются */
    display: block !important;
    margin: 10px auto 0 auto !important;
    border-radius: 4px;
}

/* Адаптация под мобильные телефоны — перестраиваем строго по 1 картинке в ряд */
@media (max-width: 768px) {
    .jewelry-categories-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Строго одна колонка вместо двух */
        gap: 15px !important;
    }
    .jewelry-categories-grid .category-item {
        flex: none !important;
    }
    /* Делаем фото крупными на смартфонах, чтобы клиент видел детали роскоши */
    .jewelry-categories-grid .category-item img {
        height: 250px !important; 
    }
}
    
    .jewelry-categories-grid .category-item {
        flex: none !important; /* Отменяем флекс-пропорции для сетки */
    }
}

/* Контейнер для карточек реквизитов */
.company-requisites-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    margin: 40px 0 !important;
}

/* Стилизация каждой карточки */
.company-requisites-container .requisites-card {
    flex: 1 1 300px !important; /* Карточки делят место 50/50, но не сжимаются меньше 300px */
    background-color: #f8f9fa !important; /* Мягкий светлый фон */
    border: 1px solid #e5e5ea !important; /* Тонкая рамка */
    border-radius: 8px !important;
    padding: 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

/* Заголовки внутри карточек */
.company-requisites-container .requisites-card h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1c1c1e !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #bfa364 !important; /* Подчеркивание вашим золотым цветом */
    padding-bottom: 8px !important;
}

/* Список параметров */
.company-requisites-container .requisites-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Строки списка */
.company-requisites-container .requisites-list li {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #48484a !important;
    margin-bottom: 12px !important;
    border-bottom: 1px dashed #e5e5ea !important; /* Разделительные пунктирные линии */
    padding-bottom: 8px !important;
}

/* Убираем нижнюю линию у последнего элемента */
.company-requisites-container .requisites-list li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Выделение жирным названий полей */
.company-requisites-container .requisites-list li strong {
    color: #1c1c1e !important;
    font-weight: 600 !important;
}

#yandex-click-block {
    transition: all 0.2s ease-in-out;
}
#yandex-click-block:hover {
    transform: translateY(-4px);
    border-color: #b3852b !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1) !important;
}

/* На компьютерах скрываем мобильный текстовый логотип */
.alantus-mobile-logo {
    display: none;
}

/* =======================================================
   1. ФИКС ЦВЕТОВ И ТЕЛЕФОНА В ШАПКЕ ДЛЯ ДЕСКТОПА (ПК-ВЕРСИЯ)
   ======================================================= */

/* Делаем весь обычный текст (Адрес и Время работы) белым на ПК */
.alantus-info-item, 
.alantus-info-item span { 
    color: #ffffff !important; 
}

/* Красим ссылку телефона на ПК, увеличиваем размер до 18px */
.alantus-phone-link { 
    color: #dfba73 !important; /* Ювелирное золото */ 
    font-size: 18px !important; /* Крупнее адреса */ 
    font-weight: bold !important; 
    text-decoration: none !important; 
    transition: color 0.2s ease !important; 
    display: inline-block !important;
}

/* Эффект при наведении мышкой на телефон на ПК */
.alantus-phone-link:hover { 
    color: #ffffff !important; /* Телефон мягко подсвечивается белым */ 
    text-decoration: underline !important; 
}

/* На компьютерах скрываем мобильный текстовый логотип */
.alantus-mobile-logo { 
    display: none !important; 
}


/* =======================================================
   2. АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ (Экран меньше 768px)
   ======================================================= */
@media screen and (max-width: 768px) { 
    
    /* Уничтожаем скрытые отступы сверху в родных классах Joomla и Cassiopeia */ 
    body, .site-container, .header, header, .grid-child, .container-nav, .com-content { 
        margin-top: 0 !important; 
        padding-top: 0 !important; 
        top: 0 !important; 
    } 

    /* Скрываем родной графический логотип Cassiopeia */ 
    .container-header .navbar-brand { 
        display: none !important; 
    } 

    /* ЭКСПЕРИМЕНТ: Растягиваем хедер на 100% ширины экрана, убирая боковые тиски шаблона */ 
    .container-header { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: flex-start !important; 
        
        /* Минимальные отступы по краям (всего 12px), чтобы дать тексту максимум ширины */
        padding: 5px 12px 10px 12px !important; 
        max-width: 100% !important; 
        width: 100% !important;
        
        margin-top: 0 !important; 
        background: #0b1d3a !important; 
        box-sizing: border-box !important; 
        gap: 8px !important; /* Компактный зазор между этажами */
        position: relative !important;
    } 

    /* Очищаем контейнеры, чтобы они занимали ВСЮ новую ширину */ 
    .container-header .navbar, 
    .container-header .header-search { 
        display: block !important; 
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 !important; 
        padding: 0 !important; 
        box-sizing: border-box !important; 
        min-height: auto !important; 
    } 

    /* ЭТАЖ 1: Название ALANTUS на самом верху без просвета */ 
    .alantus-mobile-logo { 
        order: 1 !important; 
        display: block !important; 
        width: 100% !important; 
        text-align: center !important; 
        margin: -5px auto 0 auto !important; /* Подтягиваем слово вверх */ 
        padding-top: 0 !important; 
        line-height: 0.9 !important; 
    } 
    .alantus-mobile-logo a { 
        font-size: 26px !important; 
        font-weight: 800 !important; 
        letter-spacing: 2px !important; 
        color: #dfba73 !important; 
        text-decoration: none !important; 
        display: inline-block !important; 
        line-height: 1 !important; 
    } 

    /* ЭТАЖ 2: Инфо-блок теперь может развернуться плечами на всю ширину */ 
    .container-header .header-search { 
        order: 2 !important; 
    } 
    .alantus-header-info { 
        width: 100% !important; 
        max-width: 100% !important;
        border: none !important; 
    } 
    .alantus-info-container { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        gap: 4px !important; 
        width: 100% !important;
        padding: 0 !important;
    } 
    .alantus-info-item { 
        font-size: 13px !important; 
        color: #ffffff !important; 
        white-space: normal !important; /* На всякий случай оставляем мягкий перенос для совсем узких экранов */
    } 
    .alantus-phone-block { 
        white-space: nowrap !important; 
        margin: 5px 0 !important; 
    } 

    /* СТИЛИ КНОПКИ ДЛЯ ТЕЛЕФОНА НА МОБИЛЬНОМ */ 
    .alantus-phone-link { 
        color: #dfba73 !important; 
        font-size: 15px !important; 
        font-weight: bold !important; 
        text-decoration: none !important; 
        display: inline-block !important; 
        padding: 6px 16px !important; 
        border: 1px solid rgba(223, 186, 115, 0.4) !important; 
        border-radius: 20px !important; 
        background: rgba(223, 186, 115, 0.05) !important; 
        transition: all 0.2s ease !important; 
    } 
    .alantus-phone-link:active { 
        background: rgba(223, 186, 115, 0.2) !important; 
        transform: scale(0.98) !important; 
    } 

    /* ЭТАЖ 3: Бургер-меню тоже растягиваем, чтобы линия была во весь экран */ 
    .container-header .navbar { 
        order: 3 !important; 
        width: 100% !important; 
        max-width: 100% !important;
        display: flex !important; 
        justify-content: flex-start !important; 
        padding-top: 8px !important; 
        padding-left: 5px !important; /* Пододвинули бургер ближе к левому краю экрана */
        margin-top: 2px !important; 
        border-top: 1px solid rgba(255, 255, 255, 0.1); 
    } 
    .container-header .navbar-toggler { 
        z-index: 999 !important; 
        margin: 0 !important; 
    } 

    /* ВЫПАДАЮЩЕЕ МОБИЛЬНОЕ МЕНЮ */ 
    .container-header .navbar-collapse.show, 
    .container-header .navbar-collapse.collapsing { 
        display: block !important; 
        position: absolute !important; 
        top: 100% !important; 
        left: 0 !important; 
        width: 100vw !important; 
        background: #0b1d3a !important; 
        padding: 15px 20px !important; 
        z-index: 99999 !important; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    } 
    .container-header .navbar-nav, 
    .container-header .mod-menu { 
        display: flex !important; 
        flex-direction: column !important; 
        width: 100% !important; 
    } 
    .container-header .nav-item { 
        width: 100% !important; 
        text-align: left !important; 
        padding: 8px 0 !important; 
    } 
    .container-header .nav-item a { 
        color: #ffffff !important; 
        font-size: 16px !important; 
    } 
} /* Конец мобильного блока */

/* ==========================================================================
   ИЗОЛИРОВАННЫЕ СТИЛИ ДЛЯ НОВЫХ ГОРИЗОНТАЛЬНЫХ СЕТОК НА ГЛАВНОЙ СТРАНИЦЕ
   ========================================================================== */
.alantus-main-page-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
.alantus-main-page-wrapper .alantus-section-title {
    text-align: center !important;
    margin-bottom: 40px !important;
    padding: 0 15px !important;
}
.alantus-main-page-wrapper .alantus-section-title h2 {
    font-size: 32px !important;
    color: #0b1d3a !important;
    font-weight: 700 !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-align: center !important;
    text-transform: none !important;
}
.alantus-main-page-wrapper .alantus-section-title h2::after {
    display: none !important;
}
.alantus-main-page-wrapper .subtitle {
    color: #555 !important;
    font-size: 15px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* Сетка каталога (4 карточки в ряд на ПК) */
.alantus-main-page-wrapper .alantus-services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 900px !important;
    margin: 0 auto 50px auto !important;
    padding: 0 10px !important;
}
.alantus-main-page-wrapper .service-card {
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    text-align: center !important;
    padding-bottom: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
}
.alantus-main-page-wrapper .service-card-image {
    height: 160px !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #f0f4f8 !important;
    margin-bottom: 15px !important;
}
.alantus-main-page-wrapper .service-card h3 {
    font-size: 18px !important;
    color: #0b1d3a !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}
.alantus-main-page-wrapper .service-card p {
    font-size: 13px !important;
    color: #666 !important;
    padding: 0 10px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Карточка с телефоном */
.alantus-main-page-wrapper .creative-card {
    background: #dfe3e7 !important;
    color: #ffffff !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}
.alantus-main-page-wrapper .creative-card h3 { color: #dfba73 !important; font-weight: 700 !important; margin-top: 0 !important; }
.alantus-main-page-wrapper .creative-card p { color: #010156 !important; font-size: 14px !important; margin: 0 !important; }
.alantus-main-page-wrapper .creative-call-to-action { margin-top: 15px !important; border-top: 1px solid rgba(255,255,255,0.1) !important; padding-top: 10px !important; font-weight: bold !important; }
.alantus-main-page-wrapper .creative-phone-call { color: #dfba73 !important; font-size: 16px !important; text-decoration: none !important; }
.alantus-main-page-wrapper .creative-phone-call:hover { text-decoration: underline !important; }

/* Сетка преимуществ (3 карточки в ряд на ПК) */
.alantus-main-page-wrapper .alantus-features-section { background: #f4f7f9 !important; padding: 50px 0 !important; width: 100% !important; }
.alantus-main-page-wrapper .alantus-features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
}
.alantus-main-page-wrapper .feature-item {
    text-align: center !important;
    background: #fff !important;
    padding: 25px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    border: 1px solid #eef2f5 !important;
    box-sizing: border-box !important;
}
.alantus-main-page-wrapper .feature-icon { font-size: 36px !important; margin-bottom: 12px !important; }
.alantus-main-page-wrapper .feature-item h3 { font-size: 18px !important; color: #0b1d3a !important; margin-top: 0 !important; margin-bottom: 10px !important; font-weight: 700 !important; }
.alantus-main-page-wrapper .feature-item p { font-size: 13px !important; color: #555 !important; line-height: 1.5 !important; margin: 0 !important; }

/* Блок сложности */
.alantus-main-page-wrapper .alantus-complexity-section { width: 100% !important; margin-bottom: 50px !important; padding: 0 !important; }
.alantus-main-page-wrapper .complexity-wrapper {
    background: #ffffff !important; padding: 35px !important; border-left: 4px solid #dfba73 !important; border-radius: 0 8px 8px 0 !important;
    max-width: 900px !important; margin: 40px auto !important; box-shadow: 0 4px 15px rgba(0,0,0,0.01) !important; border: 1px solid #eef2f5 !important; border-left-width: 4px !important; box-sizing: border-box !important;
}
.alantus-main-page-wrapper .complexity-wrapper h2 {
    color: #0b1d3a !important; margin-top: 0 !important; font-size: 24px !important; margin-bottom: 15px !important; font-weight: 700 !important; border-bottom: none !important; padding-bottom: 0 !important; text-align: left !important; text-transform: none !important;
}
.alantus-main-page-wrapper .complexity-wrapper h2::after { display: none !important; }
.alantus-main-page-wrapper .complexity-wrapper p { font-size: 14px !important; color: #444 !important; line-height: 1.6 !important; }

/* Сетка шагов (4 карточки в ряд на ПК) */
.alantus-main-page-wrapper .alantus-steps-section { width: 100% !important; margin-bottom: 50px !important; }
.alantus-main-page-wrapper .alantus-steps-timeline {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
}
.alantus-main-page-wrapper .step-box {
    position: relative !important;
    background: #f8fafc !important;
    border-left: 3px solid #dfba73 !important;
    padding: 20px !important;
    border-radius: 0 6px 6px 0 !important;
    border: 1px solid #eef2f5 !important;
    border-left-width: 3px !important;
    box-sizing: border-box !important;
}
.alantus-main-page-wrapper .step-box h3 { font-size: 16px !important; color: #0b1d3a !important; margin-top: 0 !important; margin-bottom: 8px !important; font-weight: 700 !important; }
.alantus-main-page-wrapper .step-box p { font-size: 13px !important; color: #666 !important; line-height: 1.4 !important; margin: 0 !important; }
.alantus-main-page-wrapper .step-num { display: none !important; }

/* АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ ТЕЛЕФОНЫ (СЕТКИ В ОДИН СТОЛБЕЦ) */
@media screen and (max-width: 768px) {
    .alantus-main-page-wrapper .alantus-services-grid, 
    .alantus-main-page-wrapper .alantus-features-grid, 
    .alantus-main-page-wrapper .alantus-steps-timeline {
        grid-template-columns: 1fr !important;
    }
    .alantus-main-page-wrapper .alantus-section-title h2 { font-size: 24px !important; }
    .alantus-main-page-wrapper .complexity-wrapper h2 { font-size: 20px !important; }
}

/* --- ПРЕМИАЛЬНЫЙ СТИЛЬ СТРАНИЦЫ КОНТАКТОВ ALANTUS --- */

/* Общий контейнер контактов */
.contact {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Перестраиваем блоки (Инфо и Форму) в аккуратный ряд/сетку */
.contact-outer {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

/* Стилизуем блок с адресом и телефоном под золотую карточку */
.contact-details, 
.com-contact__details {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #fcfbf7 100%) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    border: 1px solid #e5d5b5 !important;
    box-shadow: 0 10px 30px rgba(229, 213, 181, 0.15) !important;
    border-top: 5px solid #d4af37 !important;
}

/* Стилизуем блок формы обратной связи (справа) */
.contact-form, 
.com-contact__form {
    flex: 12;
    min-width: 320px;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

/* Делаем заголовки блоков (Адрес, Форма) солидными */
.contact h2, 
.contact h3,
.com-contact__details h3,
.com-contact__form h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #e5d5b5 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

/* Красивые ярлыки полей (Телефон, Адрес, Email) */
.contact-details .jicons-text, 
.contact-details dt,
.com-contact__details dt {
    font-weight: 700 !important;
    color: #bc9313 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    margin-top: 15px !important;
    display: block !important;
}

/* Сами данные внутри полей */
.contact-details dd,
.com-contact__details dd {
    margin-left: 0 !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    color: #34495e !important;
    font-weight: 500 !important;
}

/* Стилизация кнопкок и полей формы для премиального вида */
.contact-form .btn-primary,
.com-contact__form .btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b89728 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    padding: 12px 30px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25) !important;
    transition: transform 0.2s ease !important;
    cursor: pointer;
}

.contact-form .btn-primary:hover,
.com-contact__form .btn-primary:hover {
    transform: translateY(-2px) !important;
}

.contact-form .form-control,
.com-contact__form .form-control {
    border-radius: 8px !important;
    border: 1px solid #cccccc !important;
    padding: 10px !important;
}

.contact-form .form-control:focus,
.com-contact__form .form-control:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}
/* --- ПРИЦЕЛЬНЫЙ СТИЛЬ ДЛЯ ПОЛЕЙ И ССЫЛОК КОНТАКТОВ ALANTUS --- */

/* Делаем весь текст (метро, город, страна) крупным, красивым и графитовым */
.contact-suburb,
.contact-state,
.contact-country {
    color: #2c3e50 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin-bottom: 4px !important;
}

/* Стилизуем блок с почтой, чтобы ссылка была золотой и дорогой */
.contact-emailto a {
    color: #bc9313 !important; /* Наше фирменное золото */
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 2px dashed #d4af37 !important; /* Красивый золотой пунктир */
    padding-bottom: 1px !important;
    transition: all 0.2s ease-in-out !important;
}

/* Эффект при наведении на почту */
.contact-emailto a:hover {
    color: #2c3e50 !important; /* Ссылка темнеет при наведении */
    border-bottom: 2px solid #2c3e50 !important; /* Линия тоже темнеет и становится сплошной */
}

/* Делаем иконку конверта перед почтой золотой и аккуратной */
.icon-envelope {
    color: #d4af37 !important;
    font-size: 16px !important;
    margin-right: 6px !important;
}

/* Сглаживаем отступы у элементов списка dd, чтобы текст не прыгал */
dd {
    margin-left: 0 !important;
    margin-bottom: 8px !important;
}
/* --- СТИЛИ ДЛЯ ОСТАВШИХСЯ ЭЛЕМЕНТОВ АДРЕСА --- */

/* Стилизуем улицу Щербаковская, 5 */
.contact-street {
    color: #2c3e50 !important;
    font-size: 16px !important;
    font-weight: 700 !important; /* Делаем улицу чуть жирнее остальных строк */
    display: inline-block !important;
    margin-bottom: 4px !important;
}

/* Красим иконку маркера адреса перед улицей */
.icon-address {
    color: #d4af37 !important; /* Чистое золото */
    font-size: 16px !important;
    margin-right: 6px !important;
}

/* Убираем убогие системные отступы у всего списка адреса */
.com-contact__address {
    margin: 0 !important;
    padding: 0 !important;
}

.com-contact__address dt {
    margin-bottom: 5px !important;
}

/* 1. Выравниваем абсолютно все h1 и класс .h1 до 30px */
h1, .h1,
.page-header h1, 
.com-content-article .page-header h1,
.com-content-category-blog .page-header h1 { 
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 35px !important; /* Принудительно уменьшаем скупку до общего стандарта */
    font-weight: 300 !important; 
    color: #1c1c1e !important; 
    letter-spacing: 0.06em !important; 
    text-transform: uppercase !important; 
    margin-top: 20px !important;
    margin-bottom: 30px !important; 
    line-height: 1.2 !important; 
    text-align: center !important; 
    transition: color 0.3s ease !important; 
}

/* 2. Добавляем золотую линию под ВСЕ заголовки */
h1::after, .h1::after,
.page-header h1::after, 
.com-content-article .page-header h1::after,
.com-content-category-blog .page-header h1::after {
    content: "" !important;
    display: block !important;
    width: 80px !important; /* Исходная ширина линии */
    height: 2px !important;
    background-color: #d4af37 !important; /* Благородное золото */
    margin: 15px auto 0 auto !important; 
    transition: width 0.3s ease-in-out !important; /* Плавное расширение при наведении */
}

/* 3. Эффект при наведении курсора: текст золотится, линия плавно удлиняется */
h1:hover, .h1:hover,
.page-header h1:hover,
.com-content-article .page-header h1:hover,
.com-content-category-blog .page-header h1:hover {
    color: #d4af37 !important;
}

h1:hover::after, .h1:hover::after,
.page-header h1:hover::after, 
.com-content-article .page-header h1:hover::after,
.com-content-category-blog .page-header h1:hover::after {
    width: 240px !important; /* Ширина линии при наведении */
}


.page-header h1:hover::after, 
.com-content-article .page-header h1:hover::after {
    width: 120px; /* Длина линии при наведении */
}

/* МЕДИА-ЗАПРОС ДЛЯ СМАРТФОНОВ (Экраны меньше 768px) */
@media screen and (max-width: 768px) {
    h1, .h1,
    .page-header h1, 
    .com-content-article .page-header h1,
    .com-content-category-blog .page-header h1 { 
        font-size: 22px !important; /* Уменьшаем заголовок для мобилок, чтобы он не был огромным */
        margin-bottom: 20px !important; 
        margin-top: 15px !important;
    }
    
    /* Корректируем золотую линию под мобильный экран */
    h1::after, .h1::after,
    .page-header h1::after, 
    .com-content-article .page-header h1::after,
    .com-content-category-blog .page-header h1::after {
        width: 50px !important; /* На смартфонах исходная линия чуть короче */
        margin: 10px auto 0 auto !important; 
    }
    
    /* Эффект расширения линии при тапе/наведении на мобилке */
    h1:hover::after, .h1:hover::after,
    .page-header h1:hover::after, 
    .com-content-article .page-header h1:hover::after,
    .com-content-category-blog .page-header h1:hover::after {
        width: 90px !important; 
    }
}

/* Этот код сработает только на экранах компьютеров и планшетов */
@media screen and (min-width: 768px) {
  /* Растягиваем форму в горизонтальную полосу */
  .alantus-services-grid .creative-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Выстраиваем элементы внутри формы в одну линию */
  .alantus-services-grid .creative-card .service-card-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Сбрасываем отступы и фиксируем заголовок */
  .alantus-services-grid .creative-card h3 {
    margin: 0 !important;
    white-space: nowrap !important; 
  }

  .alantus-services-grid .creative-card p {
    margin: 0 !important;
    white-space: normal !important;
  }

  /* Телефон аккуратно прижимаем к правому краю */
  .alantus-services-grid .creative-card .creative-call-to-action {
    white-space: nowrap !important;
    text-align: right !important;
  }
}

/* Этот отступ будет работать на мобильных, когда телефон падает вниз под текст */
.alantus-services-grid .creative-card .creative-call-to-action {
  margin-top: 10px !important; 
}

/* Делаем отступ между призывом к действию и номером телефона */
.alantus-services-grid .creative-card .creative-phone-call {
  display: inline-block !important;
  margin-top: 10px !important; /* Увеличьте число, если нужен отступ побольше */
}
