/* 1. ОБЩИЕ НАСТРОЙКИ И ШРИФТЫ */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root {
    /* Основная палитра — уходим от черного к глубокому хвойному */
    --mh-dark: #0a110f;           /* Очень глубокий фон (почти черный, но с каплей хвои) */
    --mh-surface: #121d1a;        /* Фон карточек и панелей */
    --mh-surface-brighter: #1a2925; /* Для ховеров на карточках */
    
    /* Изумрудный акцент */
    --mh-accent: #10b981;         /* Яркий изумруд (Emerald 500) */
    --mh-accent-glow: rgba(16, 185, 129, 0.15); 
    --mh-accent-hover: #34d399;
    
    /* Текст */
    --mh-text: #f8fafc;
    --mh-muted: #94a3b8;
    
    /* Хедер */
    --nav-bg: rgba(10, 17, 15, 0.85);
  }

.container-fixed {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

* {
  box-sizing: border-box;
  font-family: "Manrope", sans-serif !important;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--mh-dark);
  color: var(--mh-text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
}

/* 2. СТИЛИ HEADER (ШАПКА) */
.mod-house-header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    height: 80px; /* Фиксированная высота для стабильности */
    z-index: 10000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
  }
  
  .mod-house-header__container {
    display: flex;
    justify-content: space-between; /* Лого слева, навигация в центре, кнопка справа */
    align-items: center;
    /* Используем наш общий класс для ширины прямо здесь */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
  }
  
  /* Навигация — теперь она будет четко по центру, если нужно */
  .mod-house-header__nav { 
    display: flex; 
    gap: 35px; 
    align-items: center;
  }

.mod-house-header__link {
  color: var(--mh-text) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: 0.3s;
  position: relative;
}

.mod-house-header__link:hover { opacity: 1; }

/* Логотип */
.mod-house-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Чтобы лого не сжималось */
  }

.mod-house-header__link::after {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px; background: var(--mh-accent);
  transition: 0.3s;
}

.mod-house-header__link:hover::after { width: 100%; }

.mod-house-header__logo img {
    height: 35px;
    width: auto;
  }

  .mod-house-header__profile { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center;
    min-width: 180px; /* Резервируем место, чтобы центр не гулял */
  }

  .mod-house-header__lk-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    
    /* Цвета и фон */
    background: var(--mh-accent-glow); /* Легкий изумрудный оттенок */
    border: 1px solid rgba(16, 185, 129, 0.3); /* Полупрозрачная граница */
    color: var(--mh-text);
    
    /* Форма и размеры */
    padding: 10px 24px;
    border-radius: 12px; /* Мягкие углы как у карточек */
    
    /* Шрифт */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mod-house-header__lk-btn:hover {
    background: var(--mh-accent); /* На ховере становится полностью изумрудной */
    border-color: var(--mh-accent);
    box-shadow: 0 0 20px var(--mh-accent-glow);
    transform: translateY(-1px);
  }
  
  /* Иконка внутри кнопки */
  .mod-house-header__user-icon {
    fill: var(--mh-accent); /* Иконка в тон акценту */
    transition: 0.3s;
    width: 18px;
    height: 18px;
  }
  
  .mod-house-header__lk-btn:hover .mod-house-header__user-icon {
    fill: white; /* На ховере иконка белеет вместе с текстом */
  }

/* Burger & Mobile Menu */
.mod-house-header__burger { display: none; background: none; border: none; cursor: pointer; }
.mod-house-header__burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: 0.4s; }

.mod-house-header__mobile-overlay {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
  background: var(--mh-dark); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 35px; z-index: 999; transition: 0.5s;
}

.mod-house-header__mobile-overlay.is-active { right: 0; }

/* 3. HERO SECTION (ГЛАВНЫЙ ЭКРАН) */
.mod-house-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px;
}

.mod-house-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("https://static.tildacdn.com/tild6665-3366-4436-a561-393637616264/_3_2.jpg");
  background-size: cover; background-position: center;
}

.mod-house-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(15, 22, 24, 0.92) 0%, rgba(15, 22, 24, 0.65) 45%, rgba(15, 22, 24, 0.4) 100%);
}

.mod-house-hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 1200px;
  margin: 0 auto; border-left: 4px solid var(--mh-accent);
}

.mod-house-hero__title, .mod-house-hero__lead, .mod-house-hero__actions { padding-left: 30px; }

.mod-house-hero__title {
  margin: 0 0 1.25rem; font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem); line-height: 1.15;
}

.poll-card-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 20px; /* Чтобы элементы не слипались */
}

/* Добавь этот селектор, чтобы текст забирал всё место */
.poll-card-header > div:first-child {
    flex-grow: 1;            /* Заставляет блок с текстом расширяться */
    margin-right: 20px;      /* Чтобы текст не налезал на стрелку */
}

.arrow-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    flex-shrink: 0;          /* Чтобы стрелка не сжималась */
}

.poll-card .mod-house-hero__btn {
    margin-top: 30px !important;
    width: auto !important;
    min-width: 240px !important;
    justify-content: center !important;
}

/* Блок с кнопками управления */
.poll-actions {
    display: flex;
    gap: 12px;
    margin-right: 20px;
    align-items: center;
    flex-shrink: 0;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03); /* Легкая подложка в покое */
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.btn-edit {
    color: #3498db; /* Базовый синий */
    opacity: 0.7;
}

.btn-edit:hover {
    opacity: 1;
    background: rgba(52, 152, 219, 0.15); /* Синий фон при наведении */
    border-color: rgba(52, 152, 219, 0.3);
    color: #5dade2; /* Более светлый синий на ховере */
    transform: translateY(-2px);
}

.btn-delete {
    color: #e74c3c; /* Базовый красный */
    opacity: 0.7;
}

.btn-delete:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.15); /* Красный фон при наведении */
    border-color: rgba(231, 76, 60, 0.3);
    color: #ff5e4d; /* Яркий красный на ховере */
    transform: translateY(-2px);
}

/* Иконки (размер) */
.action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Стили для кастомного Confirm (можно использовать браузерный, но свой красивее) */
.confirm-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    display: none; justify-content: center; align-items: center; z-index: 11000;
}

.mod-house-hero__lead {
  margin: 0 0 2rem; font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--mh-muted); max-width: 32rem;
}

.mod-house-hero__btn {
  display: inline-flex; align-items: center; padding: 0 2.5rem;
  min-height: 3.25rem; background: var(--mh-accent);
  color: white; font-weight: 700; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: 0.3s; text-transform: uppercase;
}

.mod-house-hero__btn:hover { background: var(--mh-accent-hover); transform: translateY(-2px); }

.mod-house-hero__btn {
    background: linear-gradient(135deg, var(--mh-accent), #059669);
    box-shadow: 0 4px 15px var(--mh-accent-glow);
    border: none;
    letter-spacing: 0.5px;
}

.mod-house-header__link:hover::after {
    width: 100%;
    box-shadow: 0 0 12px var(--mh-accent);
}

/* 4. СТИЛИ FOOTER (ПОДВАЛ) */
.mod-house-footer {
  background-color: var(--mh-dark); padding: 60px 40px 20px;
  display: flex; flex-direction: column; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer {
    flex-shrink: 0; /* Не дает футеру сжиматься */
}

.mod-house-footer__container {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 1.8fr 1.2fr 1.5fr;
  column-gap: 80px; padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 40px;
}

.mod-house-footer__logo-img { 
    max-width: 160px; 
    margin-bottom: 20px; 
    display: block;
    width: 100%;
    height: auto;
}

.mod-house-footer__logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Центрирует лого и текст по горизонтали */
    text-align: center;     /* Центрирует сами строки текста */
    gap: 16px;
    margin: 0 auto;         /* Центрирует весь блок в своей колонке */
}

.mod-house-footer__logo-subtext {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--mh-text);
    max-width: 220px;       /* Ограничиваем ширину, чтобы текст красиво переносился */
    margin: 0;
}

.mod-house-footer__title {
  font-size: 1.1rem; font-weight: 900;
  color: var(--mh-accent); margin-bottom: 15px;
}

.mod-house-footer__link {
  color: var(--mh-text) !important; text-decoration: none;
  font-size: 0.95rem; opacity: 0.8; transition: 0.3s;
  display: block; margin-bottom: 10px;
}

.mod-house-footer__link:hover { opacity: 1; color: var(--mh-accent) !important; }

.mod-house-footer__btn {
  background: var(--mh-accent); color: white; padding: 15px 30px;
  border-radius: 12px; font-weight: 700; text-transform: uppercase;
  cursor: pointer; border: none; transition: 0.3s;
}

.mod-house-footer__btn:hover { background: var(--mh-accent-hover); transform: translateY(-3px); }

.mod-house-footer__copy { margin-top: 30px; opacity: 0.4; font-size: 0.85rem; }

/* 5. MODAL (ОКНО ВХОДА) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: none; justify-content: center; align-items: center;
  z-index: 2000; backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  padding: 50px 40px;
  border-radius: 24px;
  width: 100%; 
  max-width: 400px; 
  text-align: center;

  background: rgba(18, 29, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.login-card input {
  width: 100%; padding: 14px; margin: 10px 0; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: white; font-family: inherit; outline: none;
}

/* Заголовок и текст */
.login-card h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: var(--mh-text);
}

.login-card p {
    font-size: 0.9rem;
    color: var(--mh-muted);
    margin-bottom: 30px;
}

/* Одиночная кнопка войти */
.btn-group-single {
    margin-top: 25px;
}

.btn-group-single .btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--mh-accent), #059669);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-group-single .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* Стили крестика */
.modal-close-x {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--mh-muted);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-x:hover {
    color: var(--mh-accent);
    transform: rotate(90deg);
}

.btn-group { display: flex; gap: 10px; margin-top: 20px; }

.btn-primary { 
    background: linear-gradient(135deg, var(--mh-accent), #059669);
    box-shadow: 0 4px 15px var(--mh-accent-glow);
    color: white; 
    border: none; 
    flex: 1; 
    padding: 14px; 
    letter-spacing: 0.5px;
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer; }

.btn-secondary { 
    background: transparent; 
    color: white; 
    border: 1px solid rgba(255,255,255,0.2); 
    flex: 1; padding: 14px; 
    border-radius: 12px; 
    cursor: pointer; }

/* АДАПТИВНОСТЬ */
@media (max-width: 960px) {
  .mod-house-header__container { grid-template-columns: auto 1fr auto; }
  .mod-house-header__nav { display: none; }
  .mod-house-header__burger { display: block; }
  .mod-house-footer__container { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 640px) {
  .mod-house-footer__container { grid-template-columns: 1fr; text-align: center; }
  .mod-house-footer__logo-wrap { display: flex; flex-direction: column; align-items: center; }
  .mod-house-hero { padding: 80px 20px; }
}

/* Блок метрик в карточке */
.poll-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 30px;
    min-width: 120px;
    flex-shrink: 0;
}

.metrics-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mh-text);
    letter-spacing: 0.5px;
}

.metrics-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--mh-muted);
    margin-top: 2px;
}

.metrics-percentage {
    font-size: 0.8rem;
    color: var(--mh-accent);
    font-weight: 600;
    margin-left: 5px;
}

/* Мини полоска прогресса под цифрами */
.metrics-progress-mini {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.metrics-progress-fill {
    height: 100%;
    background: var(--mh-accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* --- 1. СИСТЕМА ВЫРАВНИВАНИЯ (СЕТКА) --- */
.header-container, 
.page-header-block, 
.poll-grid {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
    padding: 0 40px; /* Такие же отступы, как в хедере */
    
}

/* --- 2. HEADER (ШАПКА) --- */


/* Навигация (слева) */
.mod-house-header__nav {
    display: flex;
    gap: 30px;
}

.mod-house-header__link {
    color: var(--mh-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    position: relative;
    transition: 0.3s;
    padding: 5px 0;
}

.mod-house-header__link:hover {
    opacity: 1;
}

/* Красивая линия под ссылками */
.mod-house-header__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: var(--mh-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--mh-accent);
}

.mod-house-header__link:hover::after {
    width: 100%;
    box-shadow: 0 0 12px var(--mh-accent);
}

/* Логотип (центр) */
.mod-house-header__logo img {
    height: 35px;
    display: block;
}

/* Профиль (справа) */
.mod-house-header__profile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}


/* Бургер (для мобилок) */
.mod-house-header__burger {
    display: none; /* Скрыт на десктопе */
}

@media (max-width: 992px) {
    .mod-house-header__container {
        display: flex;
        justify-content: space-between;
    }
    .mod-house-header__nav { display: none; }
    .mod-house-header__burger { display: flex; flex-direction: column; background: none; border: none; cursor: pointer; }
    .mod-house-header__burger span { width: 25px; height: 2px; background: white; transition: 0.3s; }
}

.user-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 70px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
    display: flex;
    align-items: center;
}

/* --- 3. ОСНОВНОЙ КОНТЕНТ --- */
.container {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-header-block h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: left;
}

.page-header-block p {
    font-size: 1.1rem;
    opacity: 0.5;
    margin: 0;
    text-align: left;
}

/* СЕТКА КАРТОЧЕК */
.poll-grid {
    display: flex !important;
    flex-direction: column !important; /* Карточки строго друг под другом */
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important; /* Ширина как у хедера */
    margin: 40px auto 0 auto !important;
    padding: 0 !important; /* Обнуляем, так как родитель уже имеет padding */
}

.poll-card { 
    background: var(--mh-surface); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 40px;          /* Большие отступы для широкой карточки */
    border-radius: 28px; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; /* Все элементы по левому краю */
    width: 100%;            /* Растягиваем саму карточку */
    box-sizing: border-box;
}

.poll-card:hover {
    transform: translateY(-5px);
    border-color: var(--mh-accent);
    background: var(--mh-surface-brighter);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1);
}

/* Профиль и Попап */
.user-profile { position: relative; }
.profile-icon {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.profile-icon:hover { border-color: var(--mh-accent); color: var(--mh-accent); }


.footer-container { /* добавь сюда класс контента твоего футера */
    max-width: 1200px; 
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.container p {
    font-size: 1.1rem;
    color: var(--mh-muted);
    margin-bottom: 20px; /* Было 140px — это слишком много */
}


.user-name {
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    color: var(--mh-text);
}

.empty-state {
    flex: 1; /* Занимает всё свободное место в .container */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центр по вертикали */
    align-items: center;    /* Центр по горизонтали */
    text-align: center;
    opacity: 0.6;
    padding-bottom: 100px; /* Чтобы визуально казалось выше из-за футера */
}

/* Попап */
.profile-popup {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    animation: slideIn 0.3s ease;
}

.profile-popup.active {
    display: block;
}



@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-item {
    margin-bottom: 12px;
}

.popup-item label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Плавная анимация */
    display: block;
}

/* Кнопка выхода при наведении — полная заливка */
.logout-btn:hover {
    background: #ff4d4d !important;
    color: #ffffff !important;
}

/* Фикс для заголовка, чтобы он не слипался с кнопкой создания */
.admin-page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Чтобы кнопка и текст стояли по одной линии низа */
    margin-bottom: 40px;
    gap: 20px;
}

/* Фикс для содержимого карточки */
.poll-info {
    flex: 1; /* Забирает всё свободное место */
    min-width: 200px;
}

.poll-info h3 {
    margin: 0;
    font-size: 1.3rem;
}

.poll-info p {
    opacity: 0.5;
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Ограничиваем описание одной строкой, чтобы не ломать верстку */
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Адаптивность для карточки (чтобы на мобилках всё не превращалось в кашу) */
@media (max-width: 768px) {
    .poll-card-header {
        flex-wrap: wrap; /* Разрешаем перенос на новую строку */
    }
    .poll-info {
        width: 100%;
        margin-bottom: 20px;
        order: 1;
    }
    .poll-metrics {
        order: 2;
        margin-right: auto;
    }
    .poll-actions {
        order: 3;
    }
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 0; /* 140px — отступ сверху под твой хедер */
    width: 100%;
}

.admin-main-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 80px 0 60px 0 !important; /* Обнулили боковые отступы */
    width: 100% !important;
    box-sizing: border-box !important;
}