/* Определение шрифта NeusaNextPro */
@font-face {
    font-family: 'NeusaNextPro';
    src: url('../fonts/NeusaNextPro/NeusaNextPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeusaNextPro';
    src: url('../fonts/NeusaNextPro/NeusaNextPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeusaNextPro';
    src: url('../fonts/NeusaNextPro/NeusaNextPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeusaNextPro';
    src: url('../fonts/NeusaNextPro/NeusaNextPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeusaNextPro';
    src: url('../fonts/NeusaNextPro/NeusaNextPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #D81021;
    --light: #F1F1F1;
    --dark: #1A1A1A;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #777777;
}

body {
    font-family: 'NeusaNextPro', sans-serif;
    background-color: var(--light);
    padding-top: 80px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bg-white-rounded {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #b80c1a;
    border-color: #b80c1a;
}

.text-primary {
    color: var(--primary) !important;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.map-icon {
    height: 30px;
    transition: transform 0.3s;
}

.map-icon:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.04);
}

.header-phone {
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--primary) !important;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #b80c1a;
    transform: translateY(-3px);
}

.dropdown-menu {
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }

    body {
        padding-top: 70px;
    }

    .bg-white-rounded {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 400px) {
    .logo-img {
        height: 30px;
    }
}

/* Стили для футер */
footer {
    background-color: var(--dark);
    color: white;
}

footer .text-sm {
    font-size: 12px;
}

footer h5 {
    font-size: 14px !important;
}

footer .btn-sm {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.footer-menu-list li .footer-menu-link:hover {
    color: var(--light) !important;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Мессерджеры */
.social-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Telegram - голубой цвет */
.social-links a[href*="t.me"] i {
    color: #0088cc;
}

/* WhatsApp - зеленый цвет */
.social-links a[href*="wa.me"] i {
    color: #25D366;
}

/* Стили для карты сайта */
.sitemap-list li .sitemap-link:hover {
    color: var(--primary) !important;
    padding-left: 3px;
    transition: all 0.3s ease;
}

.sitemap-list li .sitemap-link:hover .sitemap-icon {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

.bg-white-rounded .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bg-white-rounded .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bg-white-rounded .card-title i {
    font-size: 1.2rem;
}

/* Стили для карточек раздела */
.section-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.section-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.section-link:hover h3 {
    color: var(--primary) !important;
}

.section-link:hover .section-icon {
    background-color: #b80c1a;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.section-link:hover .fa-arrow-right {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

/* Стили для страницы контактов */
.contact-info-section {
    padding: 20px 0;
}

.contact-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-phone {
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: var(--primary) !important;
}

.contact-icon {
    border-radius: 50% !important;
    flex-shrink: 0;
    min-width: 50px !important;
    min-height: 50px !important;
}

.map-section {
    padding: 20px 0;
}

.social-contact-btn {
    transition: transform 0.3s ease;
}

.social-contact-btn:hover {
    transform: translateY(-3px);
}

.social-contact-btn .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.social-contact-btn:hover .contact-icon {
    transform: scale(1.1);
}

.map-container {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.map-icon {
    height: 30px;
    width: auto;
    min-width: 30px;
    transition: transform 0.3s ease;
}

.map-icon:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-phone {
        font-size: 1.3rem;
    }

    .contact-info-section,
    .map-section {
        padding: 15px 0;
    }

    .social-contact-btn {
        margin-bottom: 15px;
    }

    .contact-icon {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }

    .social-contact-btn {
        display: block;
        margin-bottom: 10px;
    }
}

/* Общие стили для контента из редактора */
.content h1,
.content h2,
.content h3,
.content h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content h2 {
    font-size: 1.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.8rem;
}

.content ul {
    list-style-type: disc;
}

.content ol {
    list-style-type: decimal;
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}

.content a:hover {
    color: #b80c1a;
    border-bottom: 1px solid #b80c1a;
}

/* Стили для контента политики конфиденциальности */
.privacy-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.privacy-content h4,
.privacy-content h5,
.privacy-content h6 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.privacy-content h2 {
    font-size: 1.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.privacy-content h3 {
    font-size: 1.4rem;
    color: #444;
}

.privacy-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.privacy-content ul,
.privacy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.8rem;
}

.privacy-content ul {
    list-style-type: disc;
}

.privacy-content ol {
    list-style-type: decimal;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-content li ul,
.privacy-content li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
    transition: all 0.3s ease;
}

.privacy-content a:hover {
    color: #b80c1a;
    border-bottom: 1px solid #b80c1a;
}

.privacy-content strong,
.privacy-content b {
    font-weight: 600;
    color: #444;
}

.privacy-content em,
.privacy-content i {
    font-style: italic;
    color: #555;
}

.privacy-content blockquote {
    border-left: 4px solid #e0e0e0;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

.privacy-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.privacy-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
}

.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.privacy-content table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
}

.privacy-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.privacy-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.privacy-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

/* Контейнер для важных примечаний */
.privacy-content .notice {
    background-color: #e8f4ff;
    border-left: 4px solid #0066cc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

/* Контейнер для предупреждений */
.privacy-content .warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

/* Отступы для мобильных устройств */
@media (max-width: 768px) {
    .privacy-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .privacy-content h1 {
        font-size: 1.7rem;
    }

    .privacy-content h2 {
        font-size: 1.4rem;
    }

    .privacy-content h3 {
        font-size: 1.2rem;
    }

    .privacy-content ul,
    .privacy-content ol {
        padding-left: 1.5rem;
    }

    .privacy-content table {
        font-size: 0.9rem;
    }

    .privacy-content table th,
    .privacy-content table td {
        padding: 0.5rem;
    }
}

/* Стили для страниц ошибок 404 и 403 */

.error-number {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(216, 16, 33, 0.1);
}

.error-url {
    max-width: 700px;
}

.error-alert {
    max-width: 500px;
}

.error-url-value {
    font-size: 0.9rem;
    word-break: break-all;
}

.error-actions .btn {
    min-width: 200px;
}

/* отключаем hover эфект для error-url */
.error-url .card {
    transition: none !important;
}

.error-url .card:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {
    .error-number {
        font-size: 6rem;
    }

    .error-description {
        font-size: 1.1rem !important;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .error-number {
        font-size: 5rem;
    }

    .error-url-value {
        font-size: 0.8rem;
    }
}
