/* =============================================
   УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕГО САЙТА
   ============================================= */

body {
    background: linear-gradient(95deg, #f4f1ea 0%, #dad3c5 100%);
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #50584f;
    line-height: 1.6;
}

/* ========== ЗАГОЛОВКИ — САМЫЙ ВЫСОКИЙ ПРИОРИТЕТ ========== */
h1, h2, h3, h4, h5, h6 {
    color: #8f4331 !important;
    font-weight: 600;
}

/* Подзаголовки */
p.text-xl,
.subtitle,
h1 + p {
    color: #6a4a3c !important;
}

/* Основной текст и буллеты */
p, li, span:not(.emoji) {
    color: #50584f !important;
}

/* ========== ШАПКА И ПОДВАЛ ========== */
header,
footer {
    background-color: #dad3c5 !important;
    border: none;
}

header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ========== КНОПКИ "Записаться" (только большие) ========== */
a[href="form.html"]:not(footer a) {
    background-color: #f4f1ea !important;
    color: #50584f !important;
    border: 2px solid #50584f !important;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

a[href="form.html"]:not(footer a):hover {
    background-color: #50584f !important;
    color: #f4f1ea !important;
    border-color: #50584f !important;
    transform: translateY(-2px);
}

/* ========== ПОДВАЛ ========== */
footer nav a {
    color: #50584f !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer nav a:hover {
    color: #ac503a !important;
}

/* Сброс кнопочного вида для всех ссылок в подвале */
footer a {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: normal !important;
}

/* ========== Адаптивность ========== */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
}
/* Мобильное меню - выпадающие подменю */
#mobile-menu .active ~ .submenu,
#mobile-menu .active + div {
    display: block;
}

/* Стили для мобильных ссылок */
.mobile-link {
    padding: 8px 0;
    display: block;
}

/* Мобильные выпадающие подменю */
.mobile-submenu {
    display: block;
}

.mobile-submenu-toggle {
    cursor: pointer;
    user-select: none;
}

.mobile-submenu.active .submenu-content {
    display: flex !important;
}

.mobile-submenu.active .transition-transform {
    transform: rotate(180deg);
}

.submenu-content {
    display: none;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 60px 40px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
}

.contact-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-item:hover .contact-icon {
    box-shadow: 0 15px 35px rgba(172, 80, 58, 0.25);
    transform: scale(1.08);
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #50584f;
}

.hero img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18) !important;
    border: none !important;
}

main img {
    border: none !important;
    background: transparent !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18) !important;
}