/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Сетевые бизнес технологии](//netbis.ru)
 * @project [Стоматология Династия](//dinastiyamed.ru)
 * @summary Стили подвала и модальных окон
 * @created 2025-01
 * @modified 2026-01
 *
 * @remarks Обновлен дизайн для поддержки двух филиалов и премиального стиля
 * ============================================================================
 */

/* =========================================
   Утилиты (бывшие в теге style)
   ========================================= */
.w-4 { width: 1rem; height: 1rem; }
.w-5 { width: 1.25rem; height: 1.25rem; }
.w-6 { width: 1.5rem; height: 1.5rem; }
.w-10 { width: 2.5rem; height: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.pt-4 { padding-top: 1rem; }

.text-dental-green-footer { color: var(--dental-green-footer); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }
.hover\:text-gray-600:hover { color: #4b5563; }

.flex-row-center { display: flex; align-items: center; }
.flex-row-start { display: flex; align-items: flex-start; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.border-t { border-top-width: 1px; }
.border-gray-700 { border-color: #374151; }

/* Для модальных окон */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.bg-black { background-color: black; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-white { background-color: white; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.w-full { width: 100%; }
.max-h-screen { max-height: 100vh; }
.overflow-y-auto { overflow-y: auto; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.hidden { display: none; }

/* =========================================
   Сетки
   ========================================= */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   Стили Footer (Premium Green)
   ========================================= */
.footer-premium {
    background-color: #0c3e3a; /* Глубокий зеленый, премиальный */
    background-image: linear-gradient(to bottom, #0e4641, #082f2c);
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Декоративный элемент на фоне */
.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.footer-content {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

/* Брендинг */
.footer-brand-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 2rem;
}

/* Заголовки секций */
.footer-section-header {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Контакты */
.footer-contact-block {
    display: flex;
    flex-direction: column;
}

.footer-contact-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-nav-list .footer-link {
    display: inline-block;
}

.footer-contact-link {
    display: block;
    color: white;
}

.footer-contact-link:hover {
    color: var(--dental-green-light, #4ade80);
    transform: none;
}

/* Кнопка карты */
.footer-map-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.footer-map-btn:hover {
    background-color: white;
    color: #0c3e3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Социальные иконки */
.footer-social-block {
    margin-top: 1.5rem;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap; /* Т3: много соцсетей переносятся на новую строку, а не раздвигают колонку */
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: white;
    color: #0c3e3a;
    transform: translateY(-3px);
}

/* Навигация */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 1rem;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

@media (min-width: 900px) {
    .footer-bottom-content {
        flex-direction: row;
        align-items: flex-end;
    }
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-developer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-developer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-developer-link:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: white;
}

/* Кнопка "Наверх" */
#scroll-to-top {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* =========================================
   Стили модальных окон
   ========================================= */
.modal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 42rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-error {
    display: none;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.modal-success {
    display: none;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea {
    resize: vertical;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--dental-green);
    box-shadow: 0 0 0 3px rgba(26, 127, 90, 0.1);
}

.form-submit-btn {
    width: 100%;
    background-color: var(--dental-green);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit-btn:hover {
    background-color: var(--dental-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

.text-red-500 {
    color: #ef4444;
}

.license-modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 56rem;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    max-height: 90vh;
}

.license-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .grid-4-cols {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-main {
        padding-top: 3rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
}
