/* ============================================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ
   (отдельные переменные для рамок и текста)
   ============================================================ */

/* ----- Заголовок страницы ----- */

/* Основной контейнер шапки */
.site-branding {
  position: relative;
  padding: 20px 30px;
  display: inline-block;
}

/* Общие настройки для левого верхнего и правого нижнего уголков */
.site-branding::before,
.site-branding::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 45px;
  pointer-events: none;
  border-style: solid;
}

/* Левый верхний уголок-стрелка */
.site-branding::before {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-image: linear-gradient(to right, #5f5c7a99 30%, transparent) 1;
}

/* Нижний правый уголок-стрелка */
.site-branding::after {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
  border-image: linear-gradient(to left, #5f5c7a99 30%, transparent) 1;
}

.separate-containers .inside-article {
margin-bottom:10px !important;
}

.full-width-content .container.grid-container {
width: auto;
}

.site-content{
background-color: #8c88ab30;
}

.witch-page-header {
    padding: 10px;
}

.witch-page-header__inner {
    text-align: center;
}

.witch-page-title {
    color: var(--contrast-2);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.witch-page-subtitle {
    color: var(--contrast-3);
    font-size: 1.1rem;
}

/* ----- Контент ----- */
.witch-content-section {
    padding: 2rem 0;
}

.witch-content-wrapper {
    display: flex;
    justify-content: center;
}

.witch-content-box {
    max-width: 1000px;
    width: 100%;
    background: var(--base);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--base-3);  /* Рамка = самый тёмный фон */
    color: var(--contrast);
}

/* ----- Контакты ----- */
.witch-contacts {
    padding: 3rem 0;
    background: var(--base-2);
}

.witch-contacts__header {
    text-align: center;
    margin-bottom: 30px;
}

.witch-section-title {
    color: var(--contrast-2);
    font-size: 2rem;
    font-weight: 700;
}

.witch-section-subtitle {
    color: var(--contrast-3);
}

.witch-contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.witch-contact-card {
    background: var(--base);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--base-3);  /* Рамка = самый тёмный фон */
    text-align: center;
    transition: all 0.3s ease;
}

.witch-contact-card:hover {
    transform: translateY(-5px);
}

.witch-contact-icon {
    font-size: 2rem;
    color: var(--contrast-2);
}

.witch-contact-label {
    color: var(--contrast-2);
    margin-top: 10px;
}

.witch-contact-value {
    color: var(--contrast);
    margin: 0;
    font-size: 1.1rem;
}

.witch-email-link {
    color: var(--contrast);
    text-decoration: none;
}

.witch-email-link:hover {
    color: var(--accent);
}

/* ----- Навигационные карточки ----- */
.witch-nav-cards {
    padding: 3rem 0;
}

.witch-nav-cards__header {
    text-align: center;
    margin-bottom: 30px;
}

.witch-nav-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.witch-card-link {
    text-decoration: none;
    display: block;
}

.witch-nav-card {
    background: var(--base);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid var(--base-3);  /* Рамка = самый тёмный фон */
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.witch-nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--contrast-2);  /* При наведении рамка становится как второстепенный текст */
}

.witch-nav-icon {
    font-size: 3rem;
    color: var(--contrast-2);
}

.witch-nav-title {
    color: var(--contrast-2);
    margin-top: 15px;
}

.witch-nav-desc {
    color: var(--contrast-3);  /* Подписи — третичный текст */
    font-size: 0.95rem;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 768px) {
    .witch-page-title {
        font-size: 2rem;
    }
    
    .witch-content-box {
        padding: 20px;
    }
    
    .witch-contact-card {
        padding: 15px;
    }
    
    .witch-nav-card {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .witch-page-title {
        font-size: 1.75rem;
    }
    
    .witch-section-title {
        font-size: 1.5rem;
    }
}