* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основные фоны */
    --bg-page: #121a26;      /* Глубокий тёмно-синий */
    --bg-card: #1a2430;     /* Чуть светлее для карточек */
    --bg-input: #1e2a36;  /* Для полей ввода */


    /* Текст */
    --text-primary: #e0e6f0; /* Почти белый, но с лёгким голубым оттенком */
    --text-secondary: #a0b0c5; /* Приглушённый светло-синий */
    --text-disabled: #607085; /* Тусклый для неактивного */


    /* Акценты */
    --accent-blue: #5fc5ff;  /* Ясный голубой */
    --accent-cyan: #2fdce8;  /* Неоновый циан */
    --accent-purple: #a587ff; /* Фиолетовый акцент */


    /* Статусные цвета */
    --success: #4cd964;      /* Яркий зелёный */
    --warning: #ffcc00;     /* Тёплый жёлтый */
    --error: #ff4d4d;      /* Красный */


    /* Границы и разделители */
    --border: #2a3a4d;     /* Тёмно-синяя граница */
    --divider: #253547;    /* Ещё темнее для разделителей */


    /* Тени */
    --shadow: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
}

.logo {
    height: 50px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(47, 220, 232, 0.3);
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent-cyan);
    background: rgba(47, 220, 232, 0.1);
    transform: scale(1.05);
}

/* Основной макет */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin: 30px 0;
}

.sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px var(--shadow);
}

.categories {
    list-style: none;
    padding: 0;
}

.categories li {
    margin-bottom: 12px;
}

.categories a {
    display: block;
    padding: 10px 14px;
    color: var(--accent-blue);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.categories a:hover {
    border-left-color: var(--accent-cyan);
    background: rgba(47, 220, 232, 0.08);
    color: var(--accent-cyan);
    padding-left: 16px;
}

/* Карточки сайтов */
.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 16px var(--shadow);
    transition: transform 0.3s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.6;
}

.site-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px var(--shadow), 0 0 20px rgba(47, 220, 232, 0.2);
}

.site-title {
    font-size: 1.45rem;
    margin-bottom: 14px;
    line-height: 1.3;
}

.site-title a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

.site-title a:hover {
    color: var(--accent-purple);
}

.site-url,
.site-description {
    margin: 12px 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.site-url a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.category-label {
    display: inline-block;
    background: rgba(47, 220, 232, 0.15);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(47, 220, 232, 0.4);
}

.site-clicks {
    margin-top: 18px;
    color: var(--text-disabled);
    font-style: italic;
    font-size: 0.95rem;
}

/* Страница категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Карточки категорий */
.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: transform 0.35s, box-shadow 0.4s;
    text-align: left;
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px var(--shadow), 0 0 25px rgba(47, 220, 232, 0.25);
}

.category-title {
    font-size: 1.7rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 0 6px rgba(47, 220, 232, 0.4);
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.category-stats {
    color: var(--text-disabled);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

input[type="text"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--text-primary);
    background-color: var(--bg-input);
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-cyan);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(47, 220, 232, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 220, 232, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 220, 232, 0.4);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

/* Сообщения */
.message {
    padding: 16px 24px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid transparent;
}

.message.success {
    background: rgba(76, 217, 100, 0.15);
    color: var(--success);
    border-left-color: var(--success);
}

.message.error {
    background: rgba(255, 77, 77, 0.15);
    color: var(--error);
    border-left-color: var(--error);
}

.message.warning {
    background: rgba(255, 204, 0, 0.15);
    color: var(--warning);
    border-left-color: var(--warning);
}

.message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Подвал */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-disabled);
    border-top: 1px solid var(--divider);
    margin-top: 40px;
    font-size: 1rem;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-cyan);
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 6px;
    }

    .logo {
        height: 40px;
    }

    h1 {
        font-size: 1.9rem;
    }

    .site-card,
    .category-card {
        padding: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    header, footer {
        padding: 20px 0;
    }

    input[type="text"],
    input[type="url"],
    textarea,
    select {
        font-size: 1rem;
        padding: 12px;
    }

    button {
        width: 100%;
        margin-top: 10px;
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Дополнительные эффекты */

/* Плавное появление элементов */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стилизация скроллбара (для WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Описание каталога */
.catalog-description {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-page));
  padding: 40px 0;
  margin-bottom: 40px;
}

.catalog-description .container {
  max-width: 900px;
}

.catalog-description h2 {
  color: var(--accent-cyan);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.1rem;
  text-shadow: 0 0 8px rgba(47, 220, 232, 0.3);
}

.description-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.benefits-list, .why-choose ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li, .why-choose ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.benefits-list li::before, .why-choose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.why-choose {
  margin-top: 20px;
}

.why-choose h3 {
  color: var(--accent-blue);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.cta-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 25px;
  background: rgba(47, 220, 232, 0.1);
  border-radius: 12px;
  margin-top: 20px;
}

.cta-box p {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Кнопка в блоке призыва */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}


.btn:hover {
  transform: translateY(-2px);
   box-shadow: 0 6px 16px rgba(47, 220, 232, 0.4);
}

/* Служебная информация в подвале */
.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 20px;
}

.visitor-info,
.stats-info {
  flex: 1;
  min-width: 250px;
}

.visitor-info p,
.stats-info p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.visitor-info strong,
.stats-info strong {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  color: var(--text-disabled);
  padding: 15px 0;
  font-size: 0.9rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .description-content {
    grid-template-columns: 1fr;
  }

  .footer-info {
    flex-direction: column;
    text-align: center;
  }

  .visitor-info,
  .stats-info {
    text-align: left;
  }
}
/* Основной контейнер описания */
.catalog-description {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Шапка описания */
.description-header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Сетка характеристик */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Карточка характеристики */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Контейнер иконки */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.feature-icon {
    font-size: 1.8rem;
}

/* Заголовок характеристики */
.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

/* Текст характеристики */
.feature-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Секция призыва к действию */
.cta-section {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 1rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка */
.cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #fff;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .catalog-description {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
