:root{ --bg:#0f1724; --card:#ffffff; --accent:#0066ff; }
*{
    box-sizing:border-box
}
body{
  font-family: Inter, system-ui, Arial; 
  margin:0; 
  color:#0b1220; 
  background:#e5e5e5; 
  -webkit-font-smoothing: antialiased
}
.container{
    max-width:1100px;
    margin:0 auto;
    padding:0px
}






.phone-hero {
    background: linear-gradient(135deg, #0f1724, #1e293b);
    color: #fff;
    padding: 30px 16px 30px;
    text-align: center;
    border-radius: 12px;
    margin-top: 100px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.phone-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(51,153,255,0.15) 0%, transparent 70%);
    /* анимация теперь один раз и останавливается в конце */
    animation: rotateBGOnce 5s ease forwards;
}

@keyframes rotateBGOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(45deg); } /* конечный угол */
}

.phone-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 30px auto;
}

.phone-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
}

.phone-hero p {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}

.phone-hero .btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #3399ff;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
}

.phone-hero .btn:hover {
    background: #66c0ff;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* === ФАГ === */

.faq-section {
    padding: 40px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
	margin-bottom: 20px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #0f1c3f;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1a2b5c;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #0066ff;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: #3b3b3b;
    line-height: 1.5;
}

.lookup-box {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #c9d8f5;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #0f1724;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    animation: fadeIn 0.25s ease;
}

.lookup-row {
    margin-bottom: 10px;
}

.lookup-label {
    font-weight: 600;
    color: #0066ff;
}

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

.contact-card {
    padding: 10px 15px;
}











/* =========================
   Фильтры
========================= */
.filters {
    background: #1a2434; /* мягкий темный фон */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    margin-bottom: 20px;
}

.filters h2 {
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 16px;
    text-align: left;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.filters label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #94a3b8;
}

.filters select,
.filters input {
    background: #2f394b;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border 0.3s, background 0.3s;
}

.filters select:focus,
.filters input:focus {
    border-color: #3399ff;
    background: #1e293b;
}

.filters .btn {
    grid-column: span 1;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters .btn-primary {
    margin-top: 8px;
    background: #3399ff;
    color: #fff;
    border: none;
}

.filters .btn-primary:hover {
    background: #66c0ff;
}

.filters .btn-secondary {
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #e5e7eb;
}

.filters .btn-secondary:hover {
    border-color: #3399ff;
    color: #3399ff;
    text-decoration: none;
}

/* =========================
   Суммарная статистика под фильтрами
========================= */
.filter-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: #1a2434;
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.filter-summary p {
    font-size: 16px;
    color: #e5e7eb;
    margin: 0;
}

.filter-summary p strong {
    color: #3399ff;
    font-weight: 700;
}

.btn .btn-primary{
    margin-top: 5px;
}







/* =========================
   Общие стили карточек
========================= */
.categories, .resources {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 16px;
}

.categories h2, .resources h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}





/* =========================
   Основные карточки
========================= */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

/* =========================
   Статистика в карточке
========================= */
.stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: #f0f4f8;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #3399ff;
    margin-bottom: 4px;
}

.stat .label {
    font-size: 14px;
    color: #475569;
}

/* =========================
   Сообщение об отсутствии данных
========================= */
.no-data {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    padding: 20px 0;
}










/* =========================
   Карточки ресурсов
========================= */
.resources .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Карточка */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

/* Заголовок ресурса */
.card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

/* Описание ресурса */
.card .description {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
    max-height: 60px; /* ограничиваем высоту */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Статистика */
.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.stat {
    background: #f0f4f8;
    padding: 10px 14px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #3399ff;
    margin-bottom: 2px;
}

.stat .label {
    font-size: 13px;
    color: #64748b;
}

/* Кнопка Telegram */
.card .btn {
    display: inline-block;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #3399ff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card .btn:hover {
    background: #66c0ff;
    transform: translateY(-2px);
}

/* Анимация появления карточки */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Сообщение об отсутствии ресурсов */
.no-data {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    padding: 20px 0;
}



/* Ссылка на карточку */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Карточка ресурса */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Эффект наведения */
.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Заголовок */
.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

/* Описание */
.card p.description {
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Статистика */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.stat .number {
    font-weight: bold;
    color: #3399ff;
    margin-right: 4px;
}

.stat .label {
    color: #475569;
}

/* Кнопка Telegram */
.btn-container .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #3399ff;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-container .btn:hover {
    background: #66c0ff;
    transform: translateY(-2px);
}


.cont-avatar-card {
    display: flex;
    justify-content: center;
}

.avatar-card {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    display: block;

    cursor: pointer;

    transition: 
        transform 0.35s cubic-bezier(.4,0,.2,1),
        box-shadow 0.35s cubic-bezier(.4,0,.2,1),
        filter 0.35s ease;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 6px 18px rgba(0, 0, 0, 0.25);

    background: #111;
}

/* Hover эффект */
.avatar-card:hover {
    transform: scale(1.12);
    filter: brightness(1.1);

    box-shadow:
        0 0 0 2px rgba(0, 136, 255, 0.35),
        0 0 18px rgba(0, 136, 255, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Небольшой "нажим" при клике */
.avatar-card:active {
    transform: scale(1.05);
}




/* Адаптив */
@media (max-width: 768px) {
    .phone-hero {
        margin: 20px 10px 0px 10px;
        padding: 0px 20px 10px;
    }

    .phone-hero h1 {
        text-align: left;
        font-size: 24px;
    }

    .phone-hero p {
        text-align: start;
        font-size: 14px;
    }
    .filters {
        margin: 20px 10px 0px 10px;
    }
    .filter-summary {
        margin: 20px 10px 0px 10px;
    }

    .resources .cards {
        gap: 0px;
    }

    .cards {
       gap: 0px; 
    }

    .faq-section {
        padding: 15px;
        width: auto;
    }
}