@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

/* Основные цвета */
:root {
    --cream: #FFFEF8;
    --white: #FFFFFF;
    --light-grey: #F5F5F5;
    --warm-beige: #EDE8DF;
    --light-blue: #69C5F8;
    --lime: #CDFF07;
    --purple: #6366F1;
    --dark: #313642;
    --black: #262626;
    --grey: #4B5262;
    
    /* Blur blob colors */
    --blob-grey: #D1D5DB;
    --blob-beige: #F1E8D8;
    --blob-sand: #E7DDC7;
    
    /* Legacy colors for backward compatibility */
    --sky-blue: #69C5F8;
    --teal-green: #58B2A6;
    --warm-orange: #FF9966;
    --blue: #69C5F8;
}

/* Базовые стили */
body {
    font-family: 'Inter Tight', Arial, sans-serif;
    background: var(--cream);
    background-attachment: fixed;
    color: var(--black);
    line-height: 1.6;
    padding-top: 80px; /* Отступ для фиксированной навигации */
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    min-height: 100vh;
}

/* Живой фон с размытыми пятнами */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(209, 213, 219, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(241, 232, 216, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(231, 221, 199, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(245, 245, 245, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 10% 70%, rgba(237, 232, 223, 0.2) 0%, transparent 45%);
    background-size: 400px 400px, 600px 600px, 500px 500px, 300px 300px, 350px 350px;
    background-position: 0 0, 200px 200px, 100px 100px, 150px 150px, 250px 250px;
    pointer-events: none;
    z-index: -2;
    animation: blobMove 20s ease-in-out infinite;
}

/* Grain эффект для текстуры */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 15px 15px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
    animation: grain 12s steps(8) infinite;
}

@keyframes blobMove {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        filter: blur(0px);
    }
    25% { 
        transform: translate(-20px, -30px) scale(1.1);
        filter: blur(1px);
    }
    50% { 
        transform: translate(30px, -20px) scale(0.9);
        filter: blur(0.5px);
    }
    75% { 
        transform: translate(-10px, 20px) scale(1.05);
        filter: blur(0.8px);
    }
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -3%); }
    20% { transform: translate(-5%, 2%); }
    30% { transform: translate(3%, -8%); }
    40% { transform: translate(-2%, 8%); }
    50% { transform: translate(-5%, 3%); }
    60% { transform: translate(5%, 0%); }
    70% { transform: translate(0%, 5%); }
    80% { transform: translate(1%, 10%); }
    90% { transform: translate(-3%, 3%); }
}

/* Main content */
main {
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

main .container {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1200px;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(20px);
}

.navbar .container-fluid {
    padding-left: 3rem;
    padding-right: 3rem;
}

.navbar-nav .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.navbar-brand {
    color: var(--black) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--light-blue) !important;
    font-weight: 600;
    text-decoration: none;
}

.nav-link.active {
    color: var(--light-blue) !important;
    font-weight: 600;
}

/* Кнопки языков */
.language-switcher .btn-group {
    border-radius: 6px;
    overflow: hidden;
}

.language-btn {
    background-color: rgba(245, 245, 245, 0.8);
    border-color: rgba(209, 213, 219, 0.5);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: rgba(105, 197, 248, 0.1);
    border-color: var(--light-blue);
    color: var(--light-blue);
}

.language-btn.active {
    background-color: var(--lime);
    border-color: var(--lime);
    color: var(--dark);
}

.language-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.language-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(105, 197, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple) 0%, var(--light-blue) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 197, 248, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--light-blue);
    color: var(--light-blue);
    font-weight: 500;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 197, 248, 0.3);
}

/* Кнопка Вход в навигации */
.navbar .btn-outline-primary {
    margin-left: 1rem;
}

.btn-outline-secondary {
    border-color: var(--grey);
    color: var(--grey);
    font-weight: 500;
    border-radius: 8px;
}

.btn-outline-secondary:hover {
    background-color: var(--grey);
    border-color: var(--grey);
    color: var(--white);
}

/* Карточки */
.card {
    border: none;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(105, 197, 248, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(105, 197, 248, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(105, 197, 248, 0.2);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    padding: 1.5rem;
}

/* Формы */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 0.2rem rgba(205, 255, 7, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

/* Радио кнопки для выбора типа проблемы */
.radio-options {
    display: grid;
    gap: 1rem;
}

.radio-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.radio-option:hover {
    border-color: var(--lime);
    background-color: rgba(205, 255, 7, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 255, 7, 0.2);
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.radio-option.selected {
    border-color: var(--lime);
    background-color: rgba(205, 255, 7, 0.15);
    box-shadow: 0 4px 12px rgba(205, 255, 7, 0.3);
}

.radio-option label {
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    margin: 0;
}

/* Алерты */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* Футер */
.footer {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(209, 213, 219, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Меньший отступ для мобильных */
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .navbar-nav .nav-item {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        margin: -14px 1rem 0 1rem;
        padding: 2rem 0;
        border-radius: 0 0 2rem 2rem;
        max-width: calc(100% - 2rem);
    }
    
    .language-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .card {
        margin: 0 0 1rem 0;
    }
    
    .features-section .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-md-flex .btn {
        width: auto;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Адаптивность для иконок статистики */
    .stats-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stats-icon-circle i {
        font-size: 1.2rem;
    }
    
    .stats-section .card {
        padding: 1.5rem;
    }
    
    /* Мобильный макет для карточек статистики - все секции */
    .stats-section .card-body {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 1rem;
        flex-direction: row;
    }
    
    .stats-section .stats-icon-wrapper {
        margin-right: 1rem;
        margin-bottom: 0;
        margin-top: 0;
        flex-shrink: 0;
        width: auto;
    }
    
    .stats-section .card-body h5 {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
        flex: 0 0 auto;
        min-width: 30px;
    }
    
    .stats-section .card-body p {
        margin: 0;
        font-size: 0.9rem;
        flex: 1;
        text-align: left;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.features-section .card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.features-section .card:nth-child(1) {
    animation-delay: 0.1s;
}

.features-section .card:nth-child(2) {
    animation-delay: 0.2s;
}

.features-section .card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Иконки */
.bi {
    font-size: 1.2em;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    font-weight: 600;
    font-family: 'Inter Tight', Arial, sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--black);
}

h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
}

/* Контент */
.content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content p {
    margin-bottom: 1.5rem;
}

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

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

/* Главная страница */
.hero-section {
    background: rgba(255, 255, 255, 0.7);
    color: var(--black);
    border-radius: 0 0 3rem 3rem;
    margin: -14px 10rem 0 10rem;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    max-width: calc(100% - 20rem);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(105, 197, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(205, 255, 7, 0.05) 0%, transparent 50%);
    border-radius: 0 0 3rem 3rem;
    z-index: -1;
}

/* Адаптивные отступы для hero-блока */
@media (max-width: 1400px) {
    .hero-section {
        margin: -14px 8rem 0 8rem;
        max-width: calc(100% - 16rem);
    }
}

@media (max-width: 1200px) {
    .hero-section {
        margin: -14px 6rem 0 6rem;
        max-width: calc(100% - 12rem);
    }
}

@media (max-width: 992px) {
    .hero-section {
        margin: -14px 4rem 0 4rem;
        max-width: calc(100% - 8rem);
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin: -14px 2rem 0 2rem;
        max-width: calc(100% - 4rem);
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin: -14px 5px 0 5px;
        max-width: calc(100% - 10px);
    }
}

.hero-section h1 {
    color: var(--black);
    text-shadow: none;
}

.hero-section .lead {
    color: var(--dark);
    font-weight: 500;
}

.hero-section .text-muted {
    color: var(--grey) !important;
}

.features-section {
    background: transparent;
    border-radius: 2rem;
    margin: 2rem 0;
    padding: 2rem 0;
}

.features-section .card {
    border: 1px solid rgba(105, 197, 248, 0.1);
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    padding: 2rem;
}

.features-section .card:hover {
    border-color: var(--light-blue);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(105, 197, 248, 0.2);
}

.features-section .card .bi {
    transition: all 0.4s ease;
}

.features-section .card:hover .bi {
    transform: scale(1.1);
    color: var(--light-blue) !important;
}

.features-section .card .card-title {
    transition: all 0.3s ease;
}

.features-section .card:hover .card-title {
    color: var(--blue) !important;
    transform: translateY(-2px);
}

.features-section .card .card-text {
    transition: all 0.3s ease;
}

.features-section .card:hover .card-text {
    transform: translateY(-2px);
}

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

/* Специальные эффекты для иконок */
.features-section .card .bi-qr-code {
    color: var(--light-blue);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-section .card .bi-shield-check {
    color: var(--lime);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-section .card .bi-lightning {
    color: var(--purple);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-section .card:hover .bi-qr-code,
.features-section .card:hover .bi-shield-check,
.features-section .card:hover .bi-lightning {
    filter: drop-shadow(0 4px 8px rgba(105, 197, 248, 0.3));
}

/* Статистика */
.stats-section {
    background: 
        radial-gradient(circle at 20% 30%, rgba(209, 213, 219, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(241, 232, 216, 0.15) 0%, transparent 50%);
    border-radius: 2rem;
    margin: 2rem 0;
    padding: 2rem 0;
    text-align: center;
}

.stats-section .card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(209, 213, 219, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Десктопная версия - вертикальное расположение */
@media (min-width: 769px) {
    .stats-section .card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .stats-section .stats-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
        margin-top: 0;
        width: 100%;
    }
    
    .stats-section .card-body h5 {
        margin-right: 0;
        margin-bottom: 0.5rem;
        flex: none;
        min-width: auto;
    }
    
    .stats-section .card-body p {
        margin: 0;
        text-align: center;
        flex: none;
    }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Новые стили для иконок статистики */
.stats-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 1rem auto;
}

.stats-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.stats-icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
}

.stats-icon-circle:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stats-icon-circle i {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Цветовые варианты для иконок */
.stats-icon-primary {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
}

.stats-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stats-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stats-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stats-icon-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.stats-icon {
    transition: transform 0.3s ease;
}

.stats-icon:hover {
    transform: scale(1.1);
}

.stats-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Анимация счетчиков */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-section h3, .stats-section h5 {
    animation: countUp 0.8s ease-out;
}

/* Админская панель */
.admin-header {
    background: transparent;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.admin-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(105, 197, 248, 0.3);
}

/* Карточки статистики админки */
.stats-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--purple));
}

.stats-card-danger::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stats-card-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stats-card-success::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stats-card-info::before {
    background: linear-gradient(90deg, var(--light-blue), var(--purple));
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
    animation: countUp 1s ease-out;
}

.stats-label {
    color: var(--grey);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-blue);
    background: rgba(105, 197, 248, 0.1);
}

.stats-card-danger .stats-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.stats-card-warning .stats-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.stats-card-success .stats-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stats-card-info .stats-icon {
    color: var(--light-blue);
    background: rgba(105, 197, 248, 0.1);
}

/* Карточки админки */
.admin-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.admin-card .card-header {
    background: rgba(245, 245, 245, 0.8);
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
}

.admin-card .card-header h5 {
    color: var(--black);
    font-weight: 600;
    margin: 0;
}

.admin-card .card-body {
    padding: 1.5rem;
}

/* Кнопки действий админки */
.admin-action-btn {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Элементы сообщений */
.message-item {
    padding: 1rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.message-item:hover {
    background: rgba(245, 245, 245, 0.8);
    transform: translateX(4px);
}

/* Статус бейджи */
.status-badge {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.status-in_progress {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.status-resolved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.status-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: var(--white);
}

/* Адаптивность для админки */
@media (max-width: 768px) {
    .admin-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .admin-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .admin-action-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Страницы контента */
.page-header {
    background: transparent;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.page-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(105, 197, 248, 0.3);
    margin: 0 auto;
}

.page-title {
    color: var(--black);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--grey);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.content-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.content-body {
    padding: 2rem;
}

/* Карточки методов отправки */
.method-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(105, 197, 248, 0.3);
    flex-shrink: 0;
}

.method-icon-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.method-icon-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.method-content {
    flex: 1;
}

.method-title {
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.method-description {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Информационные блоки */
.info-box, .warning-box, .success-box {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.info-box {
    background: rgba(105, 197, 248, 0.1);
    border: 1px solid rgba(105, 197, 248, 0.2);
    color: var(--dark);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--dark);
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--dark);
}

/* Карточка безопасности */
.security-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

.security-header {
    color: var(--black);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.security-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--dark);
}

.security-feature i {
    color: #10b981;
}

/* Адаптивность для страниц */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .page-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .method-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
}

/* Формы отправки сообщений */
.message-form-header {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    color: var(--white);
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(105, 197, 248, 0.3);
}

.message-form-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.message-form-card {
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
}

.message-form-body {
    padding: 2rem;
}

.message-form-info {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Исправление переноса длинного текста */
.alert {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Общие стили для полей ввода */
.form-control, .form-select, textarea {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Стили для textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Стили для reCAPTCHA */
.g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

/* Исправление viewport для мобильных устройств */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Принудительное ограничение ширины */
    .message-form-card {
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
    }
}

/* Исправление для мобильных устройств */
@media (max-width: 768px) {
    .message-form-body {
        padding: 1.5rem;
    }
    
    .alert {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Исправление полей ввода на мобильных */
    .form-control, .form-select, textarea {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Исправление для textarea */
    textarea.form-control {
        resize: vertical;
        min-height: 100px;
        max-height: 200px;
    }
    
    /* Исправление для reCAPTCHA */
    .g-recaptcha {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Страница входа */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.login-header {
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(105, 197, 248, 0.3);
    margin: 0 auto;
}

.login-title {
    color: var(--black);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--grey);
    font-size: 1rem;
    margin: 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.login-body {
    padding: 2rem;
}

.login-form .form-label {
    color: var(--black);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-form .input-group-text {
    background: rgba(245, 245, 245, 0.8);
    border: 1px solid rgba(209, 213, 219, 0.3);
    color: var(--light-blue);
}

.login-form .form-control {
    border: 1px solid rgba(209, 213, 219, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 0.2rem rgba(105, 197, 248, 0.25);
}

.login-btn {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 197, 248, 0.4);
}

.login-info {
    padding: 1rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

/* Адаптивность для форм отправки сообщений */
@media (max-width: 768px) {
    .message-form-header {
        padding: 1rem;
    }
    
    .message-form-header h4 {
        font-size: 1.1rem;
    }
    
    .message-form-card {
        margin: 0 1rem;
        overflow: hidden;
    }
    
    .message-form-body {
        padding: 1.5rem;
        overflow: hidden;
    }
    
    .alert {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .message-form-info {
        margin-top: 1rem;
    }
    
    /* Дополнительные исправления для мобильных */
    .form-control, .form-select, textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Исправление для контейнера формы */
    .row {
        margin: 0;
    }
    
    .col-md-8, .col-lg-6 {
        padding: 0;
    }
}

/* Адаптивность для страницы входа */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem 0;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
}

/* Админские таблицы */
.admin-table {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table thead th {
    background: rgba(245, 245, 245, 0.8);
    border: none;
    color: var(--black);
    font-weight: 600;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(209, 213, 219, 0.2);
}

.admin-table tbody tr:hover {
    background: rgba(105, 197, 248, 0.05);
}

.admin-table .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.admin-table .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}
