/* Общие стили для страниц О нас и Контакты */

/* Запрет выделения текста */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение для полей ввода и редактируемых элементов */
input,
textarea,
select,
[contenteditable="true"],
[contenteditable="true"] * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Hero секция для внутренних страниц */
.page-hero {
    text-align: center;
    padding: 10px 20px 10px;
    position: relative;
    z-index: 1;
}

.page-hero .hero-brand {
    font-family: 'NauryzRedKeds', 'Unbounded', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.page-title {
    font-family: 'NauryzRedKeds', 'Unbounded', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Секция контента */
.page-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    position: relative;
    z-index: 1;
}

/* Карточки контента */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-card h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #7F6AB1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-card h2 i {
    font-size: 24px;
}

.content-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.placeholder-text {
    color: #999 !important;
    font-style: italic;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    text-align: center;
}

/* Страница контактов - простой grid */
.contacts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.contact-card-wide {
    grid-column: span 2;
}

.contact-card-wide.contact-card {
    padding: 24px;
}

.address-content {
    display: flex;
    gap: 24px;
    align-items: center;
}

.address-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.address-info .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 12px;
}

.address-info .contact-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.address-info .contact-value {
    font-size: 15px;
    margin-bottom: 12px;
}

.address-info .contact-button {
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 8px;
}

.address-image {
    flex: 1;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.address-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.contact-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7231FF 0%, #9B59B6 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.contact-value {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-decoration: none;
    word-break: break-word;
}

.contact-value[href] {
    color: #7231FF;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-value[href]:hover {
    color: #9B59B6;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7231FF 0%, #9B59B6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 49, 255, 0.4);
}

.schedule-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 15px;
}

.schedule-line:last-child {
    margin-bottom: 0;
}

.schedule-label {
    color: #666;
}

.schedule-time {
    color: #333;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.social-button:hover {
    background: white;
    border-color: #7231FF;
    color: #7231FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 49, 255, 0.15);
}

.social-button i {
    font-size: 20px;
}

/* Стили для контактных ссылок */
.content-card a {
    color: #7231FF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.content-card a:hover {
    color: #9B59B6;
    text-decoration: underline;
}

.content-card a[href^="tel:"] {
    font-size: 18px;
    font-weight: 600;
}

.content-card a[href^="mailto:"] {
    font-size: 16px;
}

.content-card a[href*="yandex.ru"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #7231FF 0%, #9B59B6 100%);
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-card a[href*="yandex.ru"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 49, 255, 0.4);
    text-decoration: none;
}

.content-card a[href*="yandex.ru"] i {
    font-size: 18px;
}

/* Активная ссылка в навигации */
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-hero {
        padding: 30px 16px 15px;
    }
    
    .page-section {
        padding: 16px 16px 40px;
        gap: 16px;
    }
    
    .content-card {
        padding: 24px;
    }
    
    .content-card h2 {
        font-size: 18px;
    }
    
    .contacts-section {
        padding: 0 16px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card-wide {
        grid-column: span 1;
    }
    
    .contact-card {
        padding: 24px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-button {
        width: 100%;
        min-width: auto;
    }
    
    .address-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .address-image {
        max-width: 100%;
        order: -1;
    }
}

